Update container assignments
PUT https://www.digicert.com/services/v2/user/{{user_id}}/container-assignments
Use this endpoint to update container (division) assignments for a user.
Users with container assignments are restricted users. Restricted users can only access the containers to which they are assigned.
Users with no container assignments are unrestricted users. Unrestricted users can access all containers within their account.
This is a destructive operation. In the request body, values in the container_id_assignments
array overwrite any existing container assignments for the given user_id
. Passing an empty array removes all container assignments, giving the user access to all containers within their account.
Tip
To get a user's existing container assignments, call the User info API and check the value of the container_assignments
array.
Example requests and responses
Path parameters
Name | Req/Opt | Type | Description |
---|---|---|---|
user_id | required | string | User ID. |
Request parameters
Name | Req/Opt | Type | Description |
---|---|---|---|
container_id_assignments | required | array of strings | List of container (division) IDs. To get a list of containers in your account, use the List containers API. |