How to Remove a User from a Group using Bold BI REST API
In Bold BI, you may need to remove a user from a group for various reasons. This can be done using the REST API. Here’s a step-by-step guide on how to do it.
Step 1: Generate a Token
First, you need to generate a token. This can be done by creating a token using the following endpoint and request body:
https://{domain}/bi/api/site/<site_identifier>/token
The request body should look like this:
{
"username":"Username/Email",
"password": "password",
"grant_type":"password"
}
Step 2: Add Authorization Header
Next, add an authorization header with the generated access token. More information on this can be found in the Authentication section of the Bold BI REST API reference.
Step 3: Delete User from Group
To delete the user from the group, use the HTTP request method DELETE and call the endpoint with the group ID.
https://{domain}/bi/api/site/<site_identifier>/v4.0/groups/<group_id>/users
The user list should be passed in the body of the request, and the content-type should be set to application/json
in the header.
Step 4: Confirmation
Upon successful deletion of the user, you will receive a status of “204 No Content”.