User
authorization object
asset object
Information about the user asset authorization. It contains the list of determined assets the user can access.
allboolean
Indicate whether the user has access to all assets or not. If true, the user has access to all assets (codes is ignored).
Example:
true
codesundefined[]
modelIdstring
Identifier of authorization model to apply on user.
The authorization model is mostly used for determining services scope that user is allowed to use.
Example:
2b2e8a4b-bfbd-4c56-b8d6-c8cb1d8c58ba
profilestring
Information about the user profile.
It can be Developer, Admin, etc.
Currently, profile is only used for information purpose and does not have any impact on the user rights.
Example:
Developer
companystring
Name of the company the user is working for.
As the company is a mandatory field, it is not possible to create a user without a company.
Also notice that as the company can access specific assets, the user will be able to access them too.
Example:
corp
emailstring
Email of the user to create.
It is used as the username for our users in order to sign in our platform.
So it must be unique and valid.
Example:
firstName.lastName@corp.com
firstNamestring
First name of the user to create
Example:
firstName
groupUidsstring[]
List of group uids to applied to the user.
Available groups uids can be retrieved from the Stonal platform API via the GET /v1/organizations/{organizationCode}/users/groups endpoint.
Example:
["0192d7b7-2994-7ad5-9952-26862f33c21a","0192d7b7-7073-7e58-896c-07113f22363a"]
lastNamestring
Last name of the user to create
Example:
lastName
permissionUidsstring[]
List of permission uids to applied to the user.
Available permissions uids can be retrieved from the Stonal platform API via the GET /v1/organizations/{organizationCode}/users/permissions endpoint.
Example:
["0192d7b7-2994-7ad5-9952-26862f33c21a","0192d7b7-7073-7e58-896c-07113f22363a"]
User
{
"authorization": {
"asset": {
"all": true,
"codes": [
"['S01', 'B01']"
]
},
"modelId": "2b2e8a4b-bfbd-4c56-b8d6-c8cb1d8c58ba",
"profile": "Developer"
},
"company": "corp",
"email": "firstName.lastName@corp.com",
"firstName": "firstName",
"groupUids": [
"0192d7b7-2994-7ad5-9952-26862f33c21a",
"0192d7b7-7073-7e58-896c-07113f22363a"
],
"lastName": "lastName",
"permissionUids": [
"0192d7b7-2994-7ad5-9952-26862f33c21a",
"0192d7b7-7073-7e58-896c-07113f22363a"
]
}