+ Start a Discussion
@LaceySnr - Matt Lacey@LaceySnr - Matt Lacey 

Can we check to see if a specific user is licensed?

I'm pretty sure I know the answer to this, and I'm pretty sure it's "no", but is there any way to check if a user is licensed to use your AppExchange Managed Package apart from using UserInfo.isCurrentUserLicensed()?I can't use that method as this code is not being run by the actual user.

 

I've got some ideas for tracking who is and isn't licencesed but all the techniques are pretty hacky and could easily produce false positives/negatives when a user's licensed status changes.

 

 

Vinita_SFDCVinita_SFDC

Hello Matt,

 

As a work around try retreiving UserLicenseId if it is null then it means the user has not been assigned with any license. For details please refer following link:

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_profile.htm

 

Hope this helps!