function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dev9dev9 

any idea how to determine the user license of a user??

any idea how to determine the user license of a user??

Devendra@SFDCDevendra@SFDC

 

Hi,

 

Try this, Setup-->Manage Users-->Users-->Click on User record for which you want to determine User license-->On User record you will find User License field.

 

Hope it helps.

 

Regards,

Devendra S

Ankit AroraAnkit Arora

If you want to get this from apex code then here it is :

 

List<User> userLst = [select UserType,Profile.UserLicense.name  from User where Id = '00590000000ETk0'] ;
System.debug('userLst :: ' + userLst[0].Profile.UserLicense.name) ;

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page