+ Start a Discussion
viswanadham Aviswanadham A 

How the list to get list of partner roles where portal users are disabled (instead of deactivated).

HI All,

How the list to get list of partner roles where portal users are disabled (instead of deactivated).
we have activation logic built through code… a link is sent to Partner and when they click we activate users. Please help me .

Thanks,
VIswa
NagendraNagendra (Salesforce Developers) 
Hi Viswanadham,

kindly use below SOQL query to check for disable users. 
select PortalRole,IsPortalEnabled from User where id in  (select Userid from UserLogin where isFrozen=true)
Please mark this as best answer if the information helps so that it gets removed from unanswered queue which becomes a proper solution and results in helping others who are looking with same issue.

Best Regards,
Nagendra.P