Deactivate a User via the API
When a user leaves your organization, you can deactivate the user, making their Adobe Workfront license available for another user and preventing them from being inadvertently assigned work. By deactivating a user, you preserve their work history, including their work assignments and their association with notes, hours, and documents.
To learn more about deactivating a user, see " Deactivate or reactivate a user.
For information about using the Core API, see API basics.
To deactivate a user via the API:
-
Generate an API key by using the following API request:
code language-none <domain>.my.workfront.com/attask/api/v15.0/user?action=generateApiKey&username=`username`&password=`password`&method=PUT` -
Locate the GUID for the user you want to deactivate.
Use the following API request to retrieve the GUID for all users in your system, note that the isActive field shows true for users that are currently active and false for users that have been deactivated:
code language-none <domain>`.my.workfront.com/attask/api/v15.0/USER/search?fields=isActive -
Use the following PUT request to change the user’s isActive field value to false:
code language-none <domain>`.my.workfront.com/attask/api/v15.0/USER/`<user's GUID>`?updates={"isActive":"false"}&method=put&apiKey=`<apiKey>`&fields=isActive -
The response will show that the isActive field value has changed from true to false indicating that the user has been deactivated:
code language-none { data: { ID: "592125e60089b88fae8b51c08383e144", name: "Tyler Reid", objCode: "USER", isActive: false } }