Maintain user roles for your existing users. You can unassign roles from individual users, to adjust for changing responsibilities within your organization.

DELETE

/users/{username}/roles

ParameterDescription
{username}The Financial Consolidation app username, not the user's email address.

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"'

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"

]