Skip to main content
Version: 1.6.1

Admin - Add roles to a user

POST 

/admin/add-roles-to-user

authorization

This API endpoint requires an API Key with at least one of the following Roles: SystemAdmin

Grant System Roles to a user. This roles will be added to it existing roles.

Request

Header Parameters

    AUTHORIZATION stringrequired

    The AUTHORIZATION header must be set to the API Key of the user. The API Key is returned when a new user is created using the /admin/create-user endpoint.

Body

required

    rolesSystemRole[]required

    Possible values: [system_admin, policies_manager, resource_viewer, crypto_user, keys_manager, keys_importer, keys_exporter]

    user_idUserIdrequired

Responses