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
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