0

I'm trying to use one of our existing enterprise user administration tools to also provision and manage Salesforce Service Cloud user accounts using the Salesforce API. I am able to provision a user through the API, but I see conflicting information about whether or not the API can be used to de-activate or freeze an account.

Has anyone been able to successfully do this through the API? REST is preferable but if SOAP is the only option I'll take that as well.

1

You can use IsActive field on User object to deactivate a User using SOAP API.

Description

Indicates whether the user has access to log in (true) or not (false). You can modify a User's active status from the user interface or via the API.

To freeze Users, you need to use the UserLogin object and the IsFrozen field. For pointers, you can refer to this knowledge article.

0

I found it. I was using the HTTP POST method. Updates to existing records must be made with the PATCH method.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.