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
bob17bob17 

How can you find out if a user is licensed for a managed package

Looking for a way within Apex to determine if a user is licensed for a certain managed package (namespace).  I know how to do it for the current user but I need to know how to check given any user record. 

 

Thanks

cgosscgoss

I don't believe there's a way to do this. Might want to check Ideas to see if there's something to this effect you can vote on.

gv007gv007

in the user profile give that particular user can access that managed package only.

bob17bob17

Gopi,

 

I don't follow what you are suggesting.  It appears you are recommending how to see which packages a user has access to via the user interface.  I know how to do that, what I am looking for is a means of checking using Apex code and I need to do if for users other than the current user.

 

Bob

hemmhemm

Bob,

 

Did you ever figure out a way to accomplish this?  I have the same need.

bob17bob17

hemm,

 

No.  We ended up creating our own separate licensing mechanism for this situation. 

 

Bob