REST API システム管理者以外だと何も取得できない。 Apex with sharingをつけても権限にかかわらず何でも取得できてしまう。 「サンプルコンソール」のような謎なアプリケーションも取得できてしまう。 正解 正解は以下のようにする。 @RemoteAction global static List<AppMenuItem> getAppMenuItems(){ String loginUserId = UserInfo.getUserId(); List<SetupEntityAccess> entities = [ SELECT SetupEntityId FROM SetupEntityAccess WHERE ParentId IN (select PermissionSetId from PermissionSetAssignment where AssigneeI