RolesApi
Method | HTTP request | Description |
---|---|---|
DeleteUserSiteRoleAssociationUsingDELETE | DELETE /api/web/v1/users/{userid}/roles/{roleid} | Delete a site role from a user |
GetSiteRoleUsingGET | GET /api/web/v1/roles/{id} | Get a role |
GetUserRolesUsingGET | GET /api/web/v1/users/{userid}/roles | List all site roles assigned to user |
GetUserSiteRoleAssociationUsingGET | GET /api/web/v1/users/{userid}/roles/{roleid} | Get site role assigned to user |
ListSiteRolesUsingGET | GET /api/web/v1/roles | List roles |
ModifyUserSiteRoleAssociationUsingPUT | PUT /api/web/v1/users/{userid}/roles/{roleid} | Set user role |
DeleteUserSiteRoleAssociationUsingDELETE
void DeleteUserSiteRoleAssociationUsingDELETE (string userid, string roleid)
Delete a site role from a user
Delete a user's site role. Caller requires the USERSITEROLES:REMOVE permission.
Using the DeleteUserSiteRoleAssociationUsingDELETEWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
userid | string | The UUID of the user from which the role is to be removed. | |
roleid | string | The UUID of the role that is to be removed. |
Return type
void (empty response body)