POST {authenticationKey}/{version}/Roles/{userPublicKey}/Assign

Assigns roles to a user

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userPublicKey

globally unique identifier

Required

authenticationKey

string

None.

version

string

None.

Body Parameters

Collection of string

Request Formats

application/json, text/json

Sample:
[
  "sample string 1",
  "sample string 2"
]

text/html

Sample:
["sample string 1","sample string 2"]

application/xml, text/xml

Sample:
<ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <string>sample string 1</string>
  <string>sample string 2</string>
</ArrayOfstring>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'HashSet`1'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

IdentityResult
NameDescriptionTypeAdditional information
Succeeded

boolean

None.

Errors

Collection of string

None.

Response Formats

application/json, text/json, text/html

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.