Hi,
I should disable 100 provisioned users. I would like to postaman via csv.
Taking a cue from this article https://developer.atlassian.com/cloud/admin/user-provisioning/rest/api-group-users/#api-scim-directory-directoryid-users-userid-delete
I should do this:
PATCH
https://api.atlassian.com/scim/directory/{directoryId}/Users/{{userId}}
with body:
Whether this is the best way to do this depends on your exact set up and what you are trying to achieve.
Assuming it is best to use the API - I think the path attribute can be removed from the JSON, as it is only required when updating a specific attribute or sub attribute.
The userId should also not be in the JSON - otherwise you are essentially telling the directory to update the userId attribute to its current value(we only want to update the active attribute). The userId should be specified as you have indicated via the path parameter.
Would be interested to understand your use case behind why exactly you need to do this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.