Maintain user roles for your existing users. You can unassign roles from individual users, to adjust for changing responsibilities within your organization.
Method and endpoint
/users/{username}/roles
Parameters
Parameter | Description |
{username} | The Financial Consolidation app username, not the user's email address. |
Curl example
This request removes the Controller
role from the user john.doe@fluence.app
.
curl --location --request DELETE 'https://fluenceapi-prod.fluence.app/api/v2305.1/user/john.doe@fluence.app/roles' \
--header 'TENANT: CustomerTenant' \
--header 'Content-Type: application/json' \
--header 'X-API-TOKEN: ••••••' \
--data '"Controller"'
Response
A successful request results in a 200 OK
message, and the response body lists the remaining role or roles the user has.
For example:
[
"Admin"
]