PUT /a/user/{Login}
Create or update a user
Body Parameters
Name | Description | Type | Required |
---|---|---|---|
Attributes | A free list of attributes | object | |
GroupLabel | Label of the group, field is empty for users | string | |
GroupPath | Path to the parent group | string | |
IsGroup | Whether this object is a group or a user | boolean | |
Login | User login is used to connect, field is empty for groups | string | |
OldPassword | OldPassword must be set when a user updates her own password | string | |
Password | Password can be passed to be updated (but never read back), field is empty for groups | string | |
Policies | Policies securing access to this user | array | |
PoliciesContextEditable | boolean | ||
Roles | List of roles applied to this user or group | array | |
Uuid | User unique identifier | string |
Body Example
{
"Attributes": {},
"GroupLabel": "string",
"GroupPath": "string",
"IsGroup": true,
"Login": "string",
"OldPassword": "string",
"Password": "string",
"Policies": [
{
"Action": "string",
"Effect": "string",
"JsonConditions": "string",
"Resource": "string",
"Subject": "string",
"id": "string"
}
],
"PoliciesContextEditable": true,
"Roles": [
{
"AutoApplies": [
"string"
],
"ForceOverride": true,
"GroupRole": true,
"IsTeam": true,
"Label": "string",
"LastUpdated": 10,
"Policies": [
{
"Action": "string",
"Effect": "string",
"JsonConditions": "string",
"Resource": "string",
"Subject": "string",
"id": "string"
}
],
"PoliciesContextEditable": true,
"UserRole": true,
"Uuid": "string"
}
],
"Uuid": "string"
}
Response Example (200)
Response Type /definitions/idmUser
{
"Attributes": {},
"GroupLabel": "string",
"GroupPath": "string",
"IsGroup": true,
"Login": "string",
"OldPassword": "string",
"Password": "string",
"Policies": [
{
"Action": "string",
"Effect": "string",
"JsonConditions": "string",
"Resource": "string",
"Subject": "string",
"id": "string"
}
],
"PoliciesContextEditable": true,
"Roles": [
{
"AutoApplies": [
"string"
],
"ForceOverride": true,
"GroupRole": true,
"IsTeam": true,
"Label": "string",
"LastUpdated": 10,
"Policies": [
{
"Action": "string",
"Effect": "string",
"JsonConditions": "string",
"Resource": "string",
"Subject": "string",
"id": "string"
}
],
"PoliciesContextEditable": true,
"UserRole": true,
"Uuid": "string"
}
],
"Uuid": "string"
}