You need to sign in to do that
Don't have an account?
venkatsforce
InActive the PortalUser using apex class
Hi All
Is this possible to In-Active(deactivate) the CustomerPortaluser using apex class?
Thanks
------------
Venkatsforce
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hi All
Is this possible to In-Active(deactivate) the CustomerPortaluser using apex class?
Thanks
------------
Venkatsforce
Hello,
Just make a check on IsActive and IsPortal user. Ex:
for(User u : [Select u.Id, u.IsActive, u.IsPortalEnabled from User u where u.name = 'abc']){
if(u.IsActive || u.IsPortalEnabled ){
u.IsActive = false;
u.IsPortalEnabled = false;
}
}
Hope it hepls!
Am using portaluser accesstoken to run my services but i got error like this... "Update failed. First exception on row 0 with id 00590000001g7hXAAQ; first error: FIELD_INTEGRITY_EXCEPTION, Cannot de-activate self: Active: [IsActive]"