How to revoke site access from the user using Bold BI REST API?
Authentication
All REST API endpoints are protected using OAuth 2.0. To access this API, you need to get an access token. Please refer to this document to get the access token.
Authorization Header
Header Name | Header Value |
Authorization | Bearer <access_token> |
Parameter Name | Type | Required | Comments |
tenant_id | Guid | YES | Id of the tenant |
- Pass the access token generated from the token endpoint in the Authorization header.
You can remove site access to the user by using the below API endpoint.
METHOD
POST
URL
/api/v2.0/tenant/{tenant_id}/remove-access
Note: Please refer to this document to get the tenant ID.
- Include anyone of the following details in the body of the request in JSON format.
Parameter Name
Type
Required
Comments
user_id
Guid
No
Unique id of the user.
Refer to this document to get the user ID.
email
String
No
Email address of the user
username
String
No
Username of the user
Sample POST Request If the user access to site is removed successfully, you will receive response message code 204.
Code
Description
Comment
204
No Content
Returns 204, If the user access to site is removed successfully
Related links
How to Generate Access Token from User Management Server using Bold BI REST API
- How to Add a new User to the user management server using Bold BI REST API
How to Grant Site Access to the User in the user management server using the Bold BI REST API
How to Delete the User from the user management server using Bold BI REST API