I am looking for a query like login users assigned Apps.


You can query all the Apps available and see which are accessible to the current user by checking the isAccessible field:

List<AppMenuItem> accessibleApps = new List<AppMenuItem>();
for(AppMenuItem app : [SELECT Name, Description, ApplicationId, SortOrder, UserSortOrder, isAccessible FROM AppMenuItem ORDER BY userSortOrder NULLS LAST, sortOrder NULLS LAST]) {
    if(app.isAccessible) {
        system.debug('Current User has access to: ' + app.Name);

More info here: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_appmenuitem.htm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.