+ Start a Discussion
Nakul ChaudhariNakul Chaudhari 

Retrieve App and Tab permissions from Profile in Apex without using Metadata Classes

Hi,

I am looking for a way to retrieve App and Tab permissions from Profile in Apex. However, I do not want to do that with Metadata classes.

Is there any way we can do this? Thanks in advance.
pconpcon
Is using the Schema class ok? [1]  You can use describeTabResult to get information about Tabs and Apps.

[1] https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_schema_describetabresult.htm#apex_class_schema_describetabresult
Nakul ChaudhariNakul Chaudhari
Hi pcon,

Thanks for the reply.
Yes, Schema class is just fine. However, it returns the App and Tab permissions from Profile for only running user/logged in user's profile.

Is it possible to when a user is logged in , he/she can retrieve other user's profile App and Tab permissions? Can you help me with this?