userManagement

Assign role to user

<Info icon="fa-light fa-lock" className="permission-callout"> <div className="permission-callout__header"><span className="permission-callout__title"><span className="permission-callout__label">Required permissions</span> <span className="fern-docs-badge small blue subtle rounded-full permission-callout__beta">Beta</span></span> <span className="permission-callout__learn-more">[Learn more](/developers/api-guidelines/permissions#how-permissions-work)</span></div>

User.Role + Add

<div className="permission-callout__roles"><span className="permission-callout__roles-label">Roles:</span> <Badge intent="info">Administrator</Badge></div> </Info>

Role is assigned to this user.

put/api/v1/user/{user_id}/role/{role_id}

Request

  • Base URL: https://cdn.emnify.net
  • URL: https://cdn.emnify.net/api/v1/user/{user_id}/role/{role_id}
  • Auth: HTTP bearer

Path parameters

user_idnumber double required

User ID

role_idnumber double required

Role ID to be assigned

Response

The server has successfully fulfilled the request and that there is no additional content to send in the response payload body

object required

Changes

No recorded changes to this operation across all 1 revision of this API.