> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/miria-4.6/miria-4.6-fr/documentation-de-reference/reference-de-lapi-rest/user-management.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# User Management

## GET /user-management/groups/

> Get a list of groups

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/groups/":{"get":{"operationId":"userGroupList","description":"Get a list of groups","parameters":[{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"description":""}}}}}},"description":""}}}}}}
```

## POST /user-management/groups/

> \*\*Create a new group\*\*\
> \
> \*\*Input payload with:\*\*\
> \
> \*\*name (required)\*\*: Name of the new user group.\
> \
> \*\*type (required)\*\*: Choose between 'global' and 'user'.\
> \
> \*\*objectGroup\*\*: Only available for 'user' type groups.\
> \
> \*\*members\*\*: Only available for 'global' type groups, must be user or user\_group names.\
> \
> \*\*comment\*\*: More information on the new user group.<br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/groups/":{"post":{"operationId":"policyCreation2","description":"**Create a new group**\n\n**Input payload with:**\n\n**name (required)**: Name of the new user group.\n\n**type (required)**: Choose between 'global' and 'user'.\n\n**objectGroup**: Only available for 'user' type groups.\n\n**members**: Only available for 'global' type groups, must be user or user_group names.\n\n**comment**: More information on the new user group.\n","tags":["user-management"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"description":"Returns the new Group"}}},"description":""}}}}}}
```

## GET /user-management/groups/{id}/

> Get an existing group

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/groups/{id}/":{"get":{"operationId":"userManagementGroupsRetrieve","description":"Get an existing group","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this group.","required":true}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"description":"Returns an existing Group"}}},"description":""}}}}}}
```

## PUT /user-management/groups/{id}/

> \*\*Update an existing group\*\*\
> \
> \*\*Input payload with:\*\*\
> \
> \*\*name (required)\*\*: Name of the new user group.\
> \
> \*\*objectGroup\*\*: Only available for 'user' type groups - To reset objectGroup insert 'objectGroup': {'name': null}.\
> \
> \*\*members\*\*: Only available for 'global' type groups, must be user or user\_group names - Members will be reseted if parameter not in payload\
> or if value is an empty array.\
> \
> \*\*comment\*\*: More information on the user group.\
> \
> \*\*type cannot be updated\*\*\
> \
> \*\*PLEASE REMEMBER THAT THIS IS A PUT METHOD, ALL OPTIONAL\
> FIELDS (EXCEPT OBJECTGROUP) LEFT NULL OR UNDEFINED WILL BE UPDATED AS BLANK OR NULL VALUES\*\*

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/groups/{id}/":{"put":{"operationId":"groupUpdate","description":"**Update an existing group**\n\n**Input payload with:**\n\n**name (required)**: Name of the new user group.\n\n**objectGroup**: Only available for 'user' type groups - To reset objectGroup insert 'objectGroup': {'name': null}.\n\n**members**: Only available for 'global' type groups, must be user or user_group names - Members will be reseted if parameter not in payload\nor if value is an empty array.\n\n**comment**: More information on the user group.\n\n**type cannot be updated**\n\n**PLEASE REMEMBER THAT THIS IS A PUT METHOD, ALL OPTIONAL\nFIELDS (EXCEPT OBJECTGROUP) LEFT NULL OR UNDEFINED WILL BE UPDATED AS BLANK OR NULL VALUES**","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this group.","required":true}],"tags":["user-management"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":"Returns the updated group"}}},"description":""}}}}}}
```

## DELETE /user-management/groups/{id}/

> \
> Delete an existing group<br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/groups/{id}/":{"delete":{"operationId":"userManagementGroupsDestroy","description":"\nDelete an existing group\n","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this group.","required":true},{"in":"query","name":"test","schema":{"type":"boolean"},"description":"Delete in test mode. (default: False)"}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /user-management/groups/{id}/permissions/

> \
> \*\*Get an existing group permissions\*\*\
> \
> \*\*Permissions are displayed in 4 categories:\*\*\
> \
> \*\*hosts\*\*: For each host, displays 2 lists that contains respectively allowed/denied actions for\
> current group, the permission datetime and the name of the host.\
> \
> \*\*permissions\*\*: For each object, displays 2 lists that contains respectively allowed/denied actions\
> for current group, the permission datetime and the name of the object.\
> \
> \*\*administrationMonitoring\*\*: list of admin/monitoring action settings associated to the group.\
> \
> \*\*medias\*\*: list of medias action settings associated to the group.\
> \
> \*\*allow and deny parameters must be one or several values in :\*\* 'open', 'add\_folder', 'rename\_object', 'delete\_object', 'move\_object', 'copy\_object', 'sync\_object'.<br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/groups/{id}/permissions/":{"get":{"operationId":"userManagementGroupsPermissionsRetrieve","description":"\n**Get an existing group permissions**\n\n**Permissions are displayed in 4 categories:**\n\n**hosts**: For each host, displays 2 lists that contains respectively allowed/denied actions for\ncurrent group, the permission datetime and the name of the host.\n\n**permissions**: For each object, displays 2 lists that contains respectively allowed/denied actions\nfor current group, the permission datetime and the name of the object.\n\n**administrationMonitoring**: list of admin/monitoring action settings associated to the group.\n\n**medias**: list of medias action settings associated to the group.\n\n**allow and deny parameters must be one or several values in :** 'open', 'add_folder', 'rename_object', 'delete_object', 'move_object', 'copy_object', 'sync_object'.\n","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this user group.","required":true}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"description":"\n        Returns the current group permissions.\n        "}}},"description":""}}}}}}
```

## PUT /user-management/groups/{id}/permissions/

> \
> \*\*Update an existing group permissions\*\*\
> \
> \*\*Permissions are displayed in 4 categories:\*\*\
> \
> \*\*hosts\*\*: For each host, displays 2 lists that contains respectively allowed/denied actions for\
> current group, the permission datetime and the name of the host.\
> \
> \*\*permissions\*\*: For each object, displays 2 lists that contains respectively allowed/denied actions\
> for current group, the permission datetime and the name of the object.\
> \
> \*\*administrationMonitoring\*\*: list of admin/monitoring action settings associated to the group.\
> \
> \*\*medias\*\*: list of medias action settings associated to the group.\
> \
> \*\*Note: if exists, all permissions are canceled and replaced.\*\*\
> \
> \*\*allow and deny parameters must be one or several values in :\*\* 'open', 'add\_folder', 'rename\_object', 'delete\_object', 'move\_object', 'copy\_object', 'sync\_object'.\
> &#x20;          &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/groups/{id}/permissions/":{"put":{"operationId":"userManagementGroupsPermissionsUpdate","description":"\n**Update an existing group permissions**\n\n**Permissions are displayed in 4 categories:**\n\n**hosts**: For each host, displays 2 lists that contains respectively allowed/denied actions for\ncurrent group, the permission datetime and the name of the host.\n\n**permissions**: For each object, displays 2 lists that contains respectively allowed/denied actions\nfor current group, the permission datetime and the name of the object.\n\n**administrationMonitoring**: list of admin/monitoring action settings associated to the group.\n\n**medias**: list of medias action settings associated to the group.\n\n**Note: if exists, all permissions are canceled and replaced.**\n\n**allow and deny parameters must be one or several values in :** 'open', 'add_folder', 'rename_object', 'delete_object', 'move_object', 'copy_object', 'sync_object'.\n            ","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this user group.","required":true}],"tags":["user-management"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{},"description":"Unspecified request body"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":"\n                    Returns the updated group permissions.\n                    "}}},"description":""}}}}}}
```

## GET /user-management/groups/{id}/settings/

> \
> Get a list of a related object setting values.\
> \
> The related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\
> \
> \*Note :\*To get or set global default settings, you must choose the following end point: /system/settings/\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/groups/{id}/settings/":{"get":{"operationId":"userManagementGroupsSettingsRetrieve","description":"\nGet a list of a related object setting values.\n\nThe related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\n\n*Note :*To get or set global default settings, you must choose the following end point: /system/settings/\n        ","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"Jobs":{"archiveDirectoryExclusion":"none"}}}},"description":""}}}}}}
```

## GET /user-management/groups/{id}/settings/{setting}/

> \
> Get a related object setting value\
> \
> The related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/groups/{id}/settings/{setting}/":{"get":{"operationId":"userManagementGroupsSettingsRetrieve2","description":"\nGet a related object setting value\n\nThe related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\n        ","parameters":[{"in":"path","name":"setting","schema":{"type":"string","pattern":"^[a-zA-Z]+$"},"required":true},{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying the setting.","required":true}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"description":"Acknowledgment if the value is recorded"}}},"description":""}}}}}}
```

## PUT /user-management/groups/{id}/settings/{setting}/

> \
> Update a related object setting value\
> \
> The related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\
> \
> Payload for setting value has following format:\
> \
> {"value": \<VALUE\_TO\_SET>}\
> \
> A setting value can be set to None with values "null" or false.<br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/groups/{id}/settings/{setting}/":{"put":{"operationId":"userManagementGroupsSettingsUpdate","description":"\nUpdate a related object setting value\n\nThe related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\n\nPayload for setting value has following format:\n\n{\"value\": <VALUE_TO_SET>}\n\nA setting value can be set to None with values \"null\" or false.\n","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying the setting.","required":true},{"in":"path","name":"setting","schema":{"type":"string"},"required":true}],"tags":["user-management"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /user-management/ldap-groups/

> \*\*Get a list of ldap groups\*\*\
> \
> \*\*Complementary information about output:\*\*\
> \
> \*\*type\*\*: One value in :\
> \['ldap', 'ldaps']\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/ldap-groups/":{"get":{"operationId":"userManagementLdapGroupsList","description":"**Get a list of ldap groups**\n\n**Complementary information about output:**\n\n**type**: One value in :\n['ldap', 'ldaps']\n        ","parameters":[{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"description":"Returns list of Ldap Groups"}}}}}},"description":""}}}}}}
```

## POST /user-management/ldap-groups/

> \*\*Create a new ldap group\*\*\
> \
> \*\*Input payload with:\*\*\
> \
> \*\*name (required)\*\*: Name for the new ldap group.\
> \
> \*\*type (required)\*\*: Must be 'ldap' or 'ldaps'.\
> \
> \*\*ldapServer\*\*:\
> \
> \- \*\*name (required)\*\*: Name of the ldap Server.\
> \
> \- \*\*type (required)\*\*: Must be 'openldap' or 'active-directory'.\
> \
> \- \*\*user (required)\*\*: string.\
> \
> \- \*\*password (required)\*\*: string.\
> \
> \- \*\*certificate (required for ldaps, not allowed for ldap)\*\*: Must correspond to .pem file names located in Certificates folder of the data management server - FEATURE DEPRECATED IN 4.1.\
> \
> \- \*\*checkCertificate (allowed for ldaps, not allowed for ldap)\*\*: Boolean, false by default.\
> \
> \- \*\*baseDn (required)\*\*: Must have format 'CN=string,DC=string,..' (single or multiple instances).\
> \
> \- \*\*userBaseDn\*\*: Must have format 'OU=string "or "DC=string'.\
> \
> \- \*\*groupsBaseDn\*\*: Must have format 'OU=string "or "DC=string'.\
> \
> \- \*\*groupsDnMatch (required)\*\*: Must have format 'OU=string "or "DC=string'.\
> \
> \- \*\*comment\*\*: comment on the ldap Server.\
> \
> \- \*\*customUserNameAttr\*\*: custom user name ldap attribute.\
> \
> \- \*\*customPosixUidAttr\*\*: custom user posix uid ldap attribute.\
> \
> \- \*\*customPosixGidAttr\*\*: custom user posix gid ldap attribute.\
> \
> \- \*\*bindDn (required)\*\*: Must have the following format :\
> \
> \| server type | format | example |\
> \|----------------|--------|---------|\
> \| \*Active directory\* | \&lt;YourDomainName\&gt;\\\\{LoginName}    | Domain\\\\{LoginName} |\
> \| \*Open LDAP\*        | uid={LoginName}     | uid={LoginName} |\
> \
> Note that '{LoginName}' is a literal pattern that will be replaced by the LDAP user name.\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/ldap-groups/":{"post":{"operationId":"ldapGroupCreation","description":"**Create a new ldap group**\n\n**Input payload with:**\n\n**name (required)**: Name for the new ldap group.\n\n**type (required)**: Must be 'ldap' or 'ldaps'.\n\n**ldapServer**:\n\n- **name (required)**: Name of the ldap Server.\n\n- **type (required)**: Must be 'openldap' or 'active-directory'.\n\n- **user (required)**: string.\n\n- **password (required)**: string.\n\n- **certificate (required for ldaps, not allowed for ldap)**: Must correspond to .pem file names located in Certificates folder of the data management server - FEATURE DEPRECATED IN 4.1.\n\n- **checkCertificate (allowed for ldaps, not allowed for ldap)**: Boolean, false by default.\n\n- **baseDn (required)**: Must have format 'CN=string,DC=string,..' (single or multiple instances).\n\n- **userBaseDn**: Must have format 'OU=string \"or \"DC=string'.\n\n- **groupsBaseDn**: Must have format 'OU=string \"or \"DC=string'.\n\n- **groupsDnMatch (required)**: Must have format 'OU=string \"or \"DC=string'.\n\n- **comment**: comment on the ldap Server.\n\n- **customUserNameAttr**: custom user name ldap attribute.\n\n- **customPosixUidAttr**: custom user posix uid ldap attribute.\n\n- **customPosixGidAttr**: custom user posix gid ldap attribute.\n\n- **bindDn (required)**: Must have the following format :\n\n| server type | format | example |\n|----------------|--------|---------|\n| *Active directory* | &lt;YourDomainName&gt;\\\\{LoginName}    | Domain\\\\{LoginName} |\n| *Open LDAP*        | uid={LoginName}     | uid={LoginName} |\n\nNote that '{LoginName}' is a literal pattern that will be replaced by the LDAP user name.\n        ","tags":["user-management"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"description":"Returns the new Group"}}},"description":""}}}}}}
```

## GET /user-management/ldap-groups/{id}/

> \*\*Get an existing group\*\*\
> \
> \*\*Complementary information about output:\*\*\
> \
> \*\*type\*\*: One value in :\
> \['ldap', 'ldaps']\
> \
> \*\*ldapServer/type\*\*: One value in :\
> \['openldap', 'active-directory']\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/ldap-groups/{id}/":{"get":{"operationId":"userManagementLdapGroupsRetrieve","description":"**Get an existing group**\n\n**Complementary information about output:**\n\n**type**: One value in :\n['ldap', 'ldaps']\n\n**ldapServer/type**: One value in :\n['openldap', 'active-directory']\n        ","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this group.","required":true}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"description":"Returns an existing Ldap Group"}}},"description":""}}}}}}
```

## PUT /user-management/ldap-groups/{id}/

> \*\*Update an existing ldap group\*\*\
> \
> \*\*Input payload with:\*\*\
> \
> \*\*name (required)\*\*: New name of the update ldap group.\
> \
> \*\*ldapServer\*\*:\
> \
> \- \*\*name (required)\*\*: Name of the ldap Server.\
> \
> \- \*\*type (required)\*\*: Must be 'openldap' or 'active-directory'.\
> \
> \- \*\*user (required)\*\*: string.\
> \
> \- \*\*password (required)\*\*: string.\
> \
> \- \*\*certificate (required for ldaps, not allowed for ldap)\*\*: Must correspond to .pem file names located in Certificates folder of the data management server - FEATURE DEPRECATED IN 4.1.\
> \
> \- \*\*checkCertificate (allowed for ldaps, not allowed for ldap)\*\*: Boolean, false by default.\
> \
> \- \*\*baseDn (required)\*\*: Must have format 'CN=string,DC=string,..' (single or multiple instances).\
> \
> \- \*\*userBaseDn\*\*: Must have format 'OU=string "or "DC=string'.\
> \
> \- \*\*groupsBaseDn\*\*: Must have format 'OU=string "or "DC=string'.\
> \
> \- \*\*groupsDnMatch (required)\*\*: Must have format 'OU=string "or "DC=string'.\
> \
> \- \*\*comment\*\*: comment on the ldap Server.\
> \
> \- \*\*customUserNameAttr\*\*: custom user name ldap attribute.\
> \
> \- \*\*customPosixUidAttr\*\*: custom user posix uid ldap attribute.\
> \
> \- \*\*customPosixGidAttr\*\*: custom user posix gid ldap attribute.\
> \
> \- \*\*bindDn (required)\*\*: Must have the following format :\
> \
> \| server type | format | example |\
> \|----------------|--------|---------|\
> \| \*Active directory\* | \&lt;YourDomainName\&gt;\\\\{LoginName}    | Domain\\\\{LoginName} |\
> \| \*Open LDAP\*        | uid={LoginName}     | uid={LoginName} |\
> \
> Note that '{LoginName}' is a literal pattern that will be replaced by the LDAP user name.\
> \
> \
> \*\*Main type cannot be updated\*\*\
> \
> \*\*PLEASE REMEMBER THAT THIS IS A PUT METHOD, ALL OPTIONAL\
> FIELDS (EXCEPT NESTED OBJECTS) LEFT NULL OR UNDEFINED WILL BE UPDATED AS BLANK OR NULL VALUES\*\*

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/ldap-groups/{id}/":{"put":{"operationId":"ldapGroupUpdate","description":"**Update an existing ldap group**\n\n**Input payload with:**\n\n**name (required)**: New name of the update ldap group.\n\n**ldapServer**:\n\n- **name (required)**: Name of the ldap Server.\n\n- **type (required)**: Must be 'openldap' or 'active-directory'.\n\n- **user (required)**: string.\n\n- **password (required)**: string.\n\n- **certificate (required for ldaps, not allowed for ldap)**: Must correspond to .pem file names located in Certificates folder of the data management server - FEATURE DEPRECATED IN 4.1.\n\n- **checkCertificate (allowed for ldaps, not allowed for ldap)**: Boolean, false by default.\n\n- **baseDn (required)**: Must have format 'CN=string,DC=string,..' (single or multiple instances).\n\n- **userBaseDn**: Must have format 'OU=string \"or \"DC=string'.\n\n- **groupsBaseDn**: Must have format 'OU=string \"or \"DC=string'.\n\n- **groupsDnMatch (required)**: Must have format 'OU=string \"or \"DC=string'.\n\n- **comment**: comment on the ldap Server.\n\n- **customUserNameAttr**: custom user name ldap attribute.\n\n- **customPosixUidAttr**: custom user posix uid ldap attribute.\n\n- **customPosixGidAttr**: custom user posix gid ldap attribute.\n\n- **bindDn (required)**: Must have the following format :\n\n| server type | format | example |\n|----------------|--------|---------|\n| *Active directory* | &lt;YourDomainName&gt;\\\\{LoginName}    | Domain\\\\{LoginName} |\n| *Open LDAP*        | uid={LoginName}     | uid={LoginName} |\n\nNote that '{LoginName}' is a literal pattern that will be replaced by the LDAP user name.\n\n\n**Main type cannot be updated**\n\n**PLEASE REMEMBER THAT THIS IS A PUT METHOD, ALL OPTIONAL\nFIELDS (EXCEPT NESTED OBJECTS) LEFT NULL OR UNDEFINED WILL BE UPDATED AS BLANK OR NULL VALUES**","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this group.","required":true}],"tags":["user-management"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":"Returns the updated ldap group"}}},"description":""}}}}}}
```

## DELETE /user-management/ldap-groups/{id}/

> \
> Delete an existing ldap\_group<br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/ldap-groups/{id}/":{"delete":{"operationId":"userManagementLdapGroupsDestroy","description":"\nDelete an existing ldap_group\n","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this ldap_group.","required":true},{"in":"query","name":"test","schema":{"type":"boolean"},"description":"Delete in test mode. (default: False)"}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /user-management/security-policies/

> \*\*Get a list of security policies\*\*\
> \
> \*\*Complementary information about output:\*\*\
> \
> \*\*type\*\*: One value in :\
> \['local', 'ldap', 'ldaps']\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/security-policies/":{"get":{"operationId":"userManagementSecurityPoliciesList","description":"**Get a list of security policies**\n\n**Complementary information about output:**\n\n**type**: One value in :\n['local', 'ldap', 'ldaps']\n        ","parameters":[{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"description":"Returns a list of security policies"}}}}}},"description":""}}}}}}
```

## POST /user-management/security-policies/

> \*\*Create a new security policy\*\*\
> \
> \*\*Commons fields for all SAP types:\*\*\
> \
> \- \*\*type (required)\*\* : type of policy 'local', 'ldap', 'ldaps'\
> \
> \- \*\*comment (required)\*\* : A comment string that explains the policy\
> \
> \- \*\*priority\*\* : Priority order of evaluation of policy\
> \
> \*\*For Local SAP type:\*\*\
> \
> \- \*\*passwordPolicyEnabled\*\* : Boolean that indicates if constraints below must be applied.\
> \
> \- \*\*passwordMinNumbers\*\* : Minimal count of digits in password, integer value between 1 and 9.\
> \
> \- \*\*passwordMinLowercase\*\* : Minimal count of lower cases in password, integer value between 1 and 9.\
> \
> \- \*\*passwordMinLength\*\* : Minimal length of password, integer value between 1 and 99.\
> \
> \- \*\*passwordMinSymbols\*\* : Minimal count of symbol(non alphanumeric), integer value between 0 and 9.\
> \
> \- \*\*passwordMinUppercase\*\* : Minimal count of upper cases in password, integer value between 1 and 9.\
> \
> \*\*For Ldap or Ldaps SAP type:\*\*\
> \
> \- \*\*ldapReferenceUser\*\* : user reference for server\
> \
> \- \*\*name\*\* : Name of server\
> \
> \- \*\*ldapGroup (required)\*\* : Ldap / Ldap server\
> \
> \- \*\*name\*\*: Server name\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/security-policies/":{"post":{"operationId":"userManagementSecurityPoliciesCreate","description":"**Create a new security policy**\n\n**Commons fields for all SAP types:**\n\n- **type (required)** : type of policy 'local', 'ldap', 'ldaps'\n\n- **comment (required)** : A comment string that explains the policy\n\n- **priority** : Priority order of evaluation of policy\n\n**For Local SAP type:**\n\n- **passwordPolicyEnabled** : Boolean that indicates if constraints below must be applied.\n\n- **passwordMinNumbers** : Minimal count of digits in password, integer value between 1 and 9.\n\n- **passwordMinLowercase** : Minimal count of lower cases in password, integer value between 1 and 9.\n\n- **passwordMinLength** : Minimal length of password, integer value between 1 and 99.\n\n- **passwordMinSymbols** : Minimal count of symbol(non alphanumeric), integer value between 0 and 9.\n\n- **passwordMinUppercase** : Minimal count of upper cases in password, integer value between 1 and 9.\n\n**For Ldap or Ldaps SAP type:**\n\n- **ldapReferenceUser** : user reference for server\n\n- **name** : Name of server\n\n- **ldapGroup (required)** : Ldap / Ldap server\n\n- **name**: Server name\n        ","tags":["user-management"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"description":"Returns the new security policy"}}},"description":""}}}}}}
```

## GET /user-management/security-policies/{id}/

> \*\*Get an existing security policy\*\*\
> \
> \*\*Complementary information about output:\*\*\
> \
> \*\*type\*\*: One value in :\
> \['local', 'ldap', 'ldaps']\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/security-policies/{id}/":{"get":{"operationId":"userManagementSecurityPoliciesRetrieve","description":"**Get an existing security policy**\n\n**Complementary information about output:**\n\n**type**: One value in :\n['local', 'ldap', 'ldaps']\n        ","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this security policy.","required":true}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"description":"Returns existing security policy"}}},"description":""}}}}}}
```

## PUT /user-management/security-policies/{id}/

> \*\*Update an existing security policy\*\*\
> \
> \*\*Commons fields for all SAP types:\*\*\
> \
> \- \*\*type cannot be changed\*\*\
> \
> \- \*\*comment (required)\*\* : A comment string that explains the policy\
> \
> \- \*\*priority\*\* : Priority order of evaluation of policy\
> \
> \*\*For Local SAP type:\*\*\
> \
> \- \*\*passwordPolicyEnabled\*\* : Boolean that indicates if constraints below must be applied.\
> \
> \- \*\*passwordMinNumbers\*\* : Minimal count of digits in password, integer value between 1 and 9.\
> \
> \- \*\*passwordMinLowercase\*\* : Minimal count of lower cases in password, integer value between 1 and 9.\
> \
> \- \*\*passwordMinLength\*\* : Minimal length of password, integer value between 1 and 99.\
> \
> \- \*\*passwordMinSymbols\*\* : Minimal count of symbol(non alphanumeric), integer value between 0 and 9.\
> \
> \- \*\*passwordMinUppercase\*\* : Minimal count of upper cases in password, integer value between 1 and 9.\
> \
> \*\*For Ldap or Ldaps SAP type:\*\*\
> \
> \- \*\*ldapReferenceUser\*\* : user reference for server\
> \
> \- \*\*name\*\* : Name of server\
> \
> \- \*\*ldapGroup\*\* : Ldap / Ldap server\
> \
> \- \*\*name\*\*: Server name\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/security-policies/{id}/":{"put":{"operationId":"userManagementSecurityPoliciesUpdate","description":"**Update an existing security policy**\n\n**Commons fields for all SAP types:**\n\n- **type cannot be changed**\n\n- **comment (required)** : A comment string that explains the policy\n\n- **priority** : Priority order of evaluation of policy\n\n**For Local SAP type:**\n\n- **passwordPolicyEnabled** : Boolean that indicates if constraints below must be applied.\n\n- **passwordMinNumbers** : Minimal count of digits in password, integer value between 1 and 9.\n\n- **passwordMinLowercase** : Minimal count of lower cases in password, integer value between 1 and 9.\n\n- **passwordMinLength** : Minimal length of password, integer value between 1 and 99.\n\n- **passwordMinSymbols** : Minimal count of symbol(non alphanumeric), integer value between 0 and 9.\n\n- **passwordMinUppercase** : Minimal count of upper cases in password, integer value between 1 and 9.\n\n**For Ldap or Ldaps SAP type:**\n\n- **ldapReferenceUser** : user reference for server\n\n- **name** : Name of server\n\n- **ldapGroup** : Ldap / Ldap server\n\n- **name**: Server name\n        ","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this security policy.","required":true}],"tags":["user-management"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":"Returns the updated security policy"}}},"description":""}}}}}}
```

## DELETE /user-management/security-policies/{id}/

> \
> Delete an existing security policy<br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/security-policies/{id}/":{"delete":{"operationId":"userManagementSecurityPoliciesDestroy","description":"\nDelete an existing security policy\n","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this security policy.","required":true},{"in":"query","name":"test","schema":{"type":"boolean"},"description":"Delete in test mode. (default: False)"}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /user-management/users/

> Get a list of users

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/users/":{"get":{"operationId":"userManagementUsersList","description":"Get a list of users","parameters":[{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"description":""}}}}}},"description":""}}}}}}
```

## POST /user-management/users/

> \*\*Create new User\*\*\
> \
> \*\*Input payload with:\*\*\
> \
> \*\*name (required)\*\*: Name of new user, it should not exist else where\
> in the table.\
> \
> \*\*userGroup (required)\*\*: a dictionary with a 'name' key. Specify to which 'user group' the created user should be belong. Note that the user group should be exist and have the USER type.\
> \
> \*\*comment\*\*: More information on the user.\
> \
> \*\*isSuperUser\*\*: by default is false\
> indicate if the user has administrator privileges.\
> \
> \*\*fullName\*\*: Full name of new user\
> \
> \*\*objectGroup\*\*: a dictionary with a 'name' key, instance of capacity group associated with the user.\
> \
> \*\*password (required)\*\*: The user's password it may be empty if it\
> is permitted by security policy.\
> \
> \*\*connectionModes\*\*: a string that indicate the connection\
> mode it can be one of those values('none', 'unix', 'windows', 'unix/windows', 'windows/unix')\
> \
> \*\*canUseAllTrustedDomains (optional, depreciated)\*\*: Boolean which indicate if the user can use all available trusted domains or only a restricted list.\
> \
> \*\*enableUserRepository\*\*: Boolean if it set to true a user repository will be created and associated to the current user. It can be created only once\
> \
> \*\*groups\*\*: a list of dictionaries with a 'name' key, specify the overall groups to which the user should be belong. Note that those groups should be exists in database and have a GLOBAL type.\
> \
> \*\*enabled\*\*: Boolean to specify if the created user should be active or not. by default is active\
> \
> \*\*multiFactorAuthStatus\*\*: String to specify the status of multi factor authentication on the created user. possible values are 'inherit', 'forbidden', 'required', 'allowed' and by default is inherit.\
> \
> \*\*multiFactorAuthMode\*\*: String to specify the mode of multi factor authentication on the created user. possible values are 'enabled','disabled' and by default is 'disabled'.\
> \
> \*\*uiConf\*\*: Raw string to specify the UI configuration.\
> \
> \*\*uiDashboards\*\*: Raw string to specify the UI ...\
> \
> \*\*uiDashboardShared\*\*: Raw string to specify the UI ...\
> \
> \*\*posixUid\*\*: User identifier number (posix format) of the user, must be an Integer.\
> \
> \*\*posixGid\*\*: Group identifiers (posix format) of the user, must be Integers separated by ',' if several.\
> &#x20;  &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/users/":{"post":{"operationId":"userManagementUsersCreate","description":"**Create new User**\n\n**Input payload with:**\n\n**name (required)**: Name of new user, it should not exist else where\nin the table.\n\n**userGroup (required)**: a dictionary with a 'name' key. Specify to which 'user group' the created user should be belong. Note that the user group should be exist and have the USER type.\n\n**comment**: More information on the user.\n\n**isSuperUser**: by default is false\nindicate if the user has administrator privileges.\n\n**fullName**: Full name of new user\n\n**objectGroup**: a dictionary with a 'name' key, instance of capacity group associated with the user.\n\n**password (required)**: The user's password it may be empty if it\nis permitted by security policy.\n\n**connectionModes**: a string that indicate the connection\nmode it can be one of those values('none', 'unix', 'windows', 'unix/windows', 'windows/unix')\n\n**canUseAllTrustedDomains (optional, depreciated)**: Boolean which indicate if the user can use all available trusted domains or only a restricted list.\n\n**enableUserRepository**: Boolean if it set to true a user repository will be created and associated to the current user. It can be created only once\n\n**groups**: a list of dictionaries with a 'name' key, specify the overall groups to which the user should be belong. Note that those groups should be exists in database and have a GLOBAL type.\n\n**enabled**: Boolean to specify if the created user should be active or not. by default is active\n\n**multiFactorAuthStatus**: String to specify the status of multi factor authentication on the created user. possible values are 'inherit', 'forbidden', 'required', 'allowed' and by default is inherit.\n\n**multiFactorAuthMode**: String to specify the mode of multi factor authentication on the created user. possible values are 'enabled','disabled' and by default is 'disabled'.\n\n**uiConf**: Raw string to specify the UI configuration.\n\n**uiDashboards**: Raw string to specify the UI ...\n\n**uiDashboardShared**: Raw string to specify the UI ...\n\n**posixUid**: User identifier number (posix format) of the user, must be an Integer.\n\n**posixGid**: Group identifiers (posix format) of the user, must be Integers separated by ',' if several.\n    ","tags":["user-management"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /user-management/users/{id}/

> Get an existing user

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/users/{id}/":{"get":{"operationId":"userManagementUsersRetrieve","description":"Get an existing user","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this user.","required":true}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## PUT /user-management/users/{id}/

> \*\*Update an existing User\*\*\
> \
> \*\*Input payload with:\*\*\
> \
> \*\*name\*\*: New name of user, it should not exist else where in the table.\
> \
> \*\*userGroup\*\*: a dictionary with a 'name' key. Specify to which 'user group' the created user should be belong. Note that the user group should be exist and have the USER type  - To reset userGroup insert 'userGroup': {'name': null}.\
> \
> \*\*comment\*\*: More information on the user.\
> \
> \*\*isSuperUser\*\*: by default is false indicate if the user has administrator privileges.\
> \
> \*\*fullName\*\*: Full name of new user\
> \
> \*\*objectGroup\*\*: a dictionary with a 'name' key, instance of capacity group associated with the user - To reset objectGroup insert 'objectGroup': {'name': null}.\
> \
> \*\*password\*\*: The user's password it may be empty if it\
> is permitted by security policy.\
> \
> \*\*connectionModes\*\*: a string that indicate the connection\
> mode it can be one of those values('none', 'unix', 'windows', 'unix/windows', 'windows/unix')\
> \
> \*\*canUseAllTrustedDomains (optional, depreciated)\*\*: Boolean which indicate if the user can use all available trusted domains or only a restricted list.\
> \
> \*\*enableUserRepository\*\*: Boolean if it set to true a user repository will be created and associated to the current user. It can be created only once\
> \
> \*\*groups\*\*: a list of dictionaries with a 'name' key, specify the overall groups to which the user should be belong. Note that those groups should be exists in database and have a GLOBAL type.\
> \
> \*\*enabled\*\*: Boolean to specify if the created user should be active or not. by default is active\
> \
> \*\*multiFactorAuthStatus\*\*: String to specify the status of multi factor authentication on the created user. possible values are 'inherit', 'forbidden', 'required', 'allowed' and by default is inherit.\
> \
> \*\*multiFactorAuthMode\*\*: String to specify the mode of multi factor authentication on the created user. possible values are 'enabled', 'disabled' and by default is 'disabled'.\
> \
> \*\*uiConf\*\*:Raw string to specify the UI configuration.\
> \
> \*\*uiDashboards\*\*: Raw string to specify the UI ...\
> \
> \*\*uiDashboardShared\*\*: Raw string to specify the UI ...\
> \
> \*\*posixUid\*\*: User identifier number (posix format) of the user, must be an Integer.\
> \
> \*\*posixGid\*\*: Group identifiers (posix format) of the user, must be Integers separated by ',' if several.\
> &#x20;  &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/users/{id}/":{"put":{"operationId":"userManagementUsersUpdate","description":"**Update an existing User**\n\n**Input payload with:**\n\n**name**: New name of user, it should not exist else where in the table.\n\n**userGroup**: a dictionary with a 'name' key. Specify to which 'user group' the created user should be belong. Note that the user group should be exist and have the USER type  - To reset userGroup insert 'userGroup': {'name': null}.\n\n**comment**: More information on the user.\n\n**isSuperUser**: by default is false indicate if the user has administrator privileges.\n\n**fullName**: Full name of new user\n\n**objectGroup**: a dictionary with a 'name' key, instance of capacity group associated with the user - To reset objectGroup insert 'objectGroup': {'name': null}.\n\n**password**: The user's password it may be empty if it\nis permitted by security policy.\n\n**connectionModes**: a string that indicate the connection\nmode it can be one of those values('none', 'unix', 'windows', 'unix/windows', 'windows/unix')\n\n**canUseAllTrustedDomains (optional, depreciated)**: Boolean which indicate if the user can use all available trusted domains or only a restricted list.\n\n**enableUserRepository**: Boolean if it set to true a user repository will be created and associated to the current user. It can be created only once\n\n**groups**: a list of dictionaries with a 'name' key, specify the overall groups to which the user should be belong. Note that those groups should be exists in database and have a GLOBAL type.\n\n**enabled**: Boolean to specify if the created user should be active or not. by default is active\n\n**multiFactorAuthStatus**: String to specify the status of multi factor authentication on the created user. possible values are 'inherit', 'forbidden', 'required', 'allowed' and by default is inherit.\n\n**multiFactorAuthMode**: String to specify the mode of multi factor authentication on the created user. possible values are 'enabled', 'disabled' and by default is 'disabled'.\n\n**uiConf**:Raw string to specify the UI configuration.\n\n**uiDashboards**: Raw string to specify the UI ...\n\n**uiDashboardShared**: Raw string to specify the UI ...\n\n**posixUid**: User identifier number (posix format) of the user, must be an Integer.\n\n**posixGid**: Group identifiers (posix format) of the user, must be Integers separated by ',' if several.\n    ","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this user.","required":true}],"tags":["user-management"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## DELETE /user-management/users/{id}/

> \
> Delete an existing user<br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/users/{id}/":{"delete":{"operationId":"userManagementUsersDestroy","description":"\nDelete an existing user\n","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this user.","required":true},{"in":"query","name":"test","schema":{"type":"boolean"},"description":"Delete in test mode. (default: False)"}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /user-management/users/{id}/permissions/

> \
> \*\*Get an existing user permissions\*\*\
> \
> \*\*Permissions are displayed in 4 categories:\*\*\
> \
> \*\*hosts\*\*: For each host, displays 2 lists that contains respectively allowed/denied actions for\
> current user, the permission datetime and the name of the host.\
> \
> \*\*permissions\*\*: For each object, displays 2 lists that contains respectively allowed/denied actions\
> for current user, the permission datetime and the name of the object.\
> \
> \*\*administrationMonitoring\*\*: list of admin/monitoring action settings associated to the user.\
> \
> \*\*medias\*\*: list of medias action settings associated to the user.\
> \
> \*\*allow and deny parameters must be one or several values in :\*\* 'open', 'add\_folder', 'rename\_object', 'delete\_object', 'move\_object', 'copy\_object', 'sync\_object'.\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/users/{id}/permissions/":{"get":{"operationId":"userManagementUsersPermissionsRetrieve","description":"\n**Get an existing user permissions**\n\n**Permissions are displayed in 4 categories:**\n\n**hosts**: For each host, displays 2 lists that contains respectively allowed/denied actions for\ncurrent user, the permission datetime and the name of the host.\n\n**permissions**: For each object, displays 2 lists that contains respectively allowed/denied actions\nfor current user, the permission datetime and the name of the object.\n\n**administrationMonitoring**: list of admin/monitoring action settings associated to the user.\n\n**medias**: list of medias action settings associated to the user.\n\n**allow and deny parameters must be one or several values in :** 'open', 'add_folder', 'rename_object', 'delete_object', 'move_object', 'copy_object', 'sync_object'.\n        ","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this user.","required":true}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"description":"\n                Returns the current user permissions.\n                "}}},"description":""}}}}}}
```

## PUT /user-management/users/{id}/permissions/

> \
> \*\*Update an existing user permissions\*\*\
> \
> \*\*Permissions are displayed in 4 categories:\*\*\
> \
> \*\*hosts\*\*: For each host, displays 2 lists that contains respectively allowed/denied actions for\
> current user, the permission datetime and the name of the host.\
> \
> \*\*permissions\*\*: For each object, displays 2 lists that contains respectively allowed/denied actions\
> for current user, the permission datetime and the name of the object.\
> \
> \*\*administrationMonitoring\*\*: list of admin/monitoring action settings associated to the user.\
> \
> \*\*medias\*\*: list of medias action settings associated to the user.\
> \
> \*\*allow and deny parameters must be one or several values in :\*\* 'open', 'add\_folder', 'rename\_object', 'delete\_object', 'move\_object', 'copy\_object', 'sync\_object'.\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/users/{id}/permissions/":{"put":{"operationId":"userManagementUsersPermissionsUpdate","description":"\n**Update an existing user permissions**\n\n**Permissions are displayed in 4 categories:**\n\n**hosts**: For each host, displays 2 lists that contains respectively allowed/denied actions for\ncurrent user, the permission datetime and the name of the host.\n\n**permissions**: For each object, displays 2 lists that contains respectively allowed/denied actions\nfor current user, the permission datetime and the name of the object.\n\n**administrationMonitoring**: list of admin/monitoring action settings associated to the user.\n\n**medias**: list of medias action settings associated to the user.\n\n**allow and deny parameters must be one or several values in :** 'open', 'add_folder', 'rename_object', 'delete_object', 'move_object', 'copy_object', 'sync_object'.\n        ","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this user.","required":true}],"tags":["user-management"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{},"description":"Unspecified request body"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":"\n                Returns the updated user permissions.\n                "}}},"description":""}}}}}}
```

## GET /user-management/users/{id}/settings/

> \
> Get a list of a related object setting values.\
> \
> The related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\
> \
> \*Note :\*To get or set global default settings, you must choose the following end point: /system/settings/\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/users/{id}/settings/":{"get":{"operationId":"userManagementUsersSettingsRetrieve","description":"\nGet a list of a related object setting values.\n\nThe related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\n\n*Note :*To get or set global default settings, you must choose the following end point: /system/settings/\n        ","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"Jobs":{"archiveDirectoryExclusion":"none"}}}},"description":""}}}}}}
```

## GET /user-management/users/{id}/settings/{setting}/

> \
> Get a related object setting value\
> \
> The related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/users/{id}/settings/{setting}/":{"get":{"operationId":"userManagementUsersSettingsRetrieve2","description":"\nGet a related object setting value\n\nThe related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\n        ","parameters":[{"in":"path","name":"setting","schema":{"type":"string","pattern":"^[a-zA-Z]+$"},"required":true},{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying the setting.","required":true}],"tags":["user-management"],"responses":{"200":{"content":{"application/json":{"schema":{"description":"Acknowledgment if the value is recorded"}}},"description":""}}}}}}
```

## PUT /user-management/users/{id}/settings/{setting}/

> \
> Update a related object setting value\
> \
> The related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\
> \
> Payload for setting value has following format:\
> \
> {"value": \<VALUE\_TO\_SET>}\
> \
> A setting value can be set to None with values "null" or false.<br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/user-management/users/{id}/settings/{setting}/":{"put":{"operationId":"userManagementUsersSettingsUpdate","description":"\nUpdate a related object setting value\n\nThe related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\n\nPayload for setting value has following format:\n\n{\"value\": <VALUE_TO_SET>}\n\nA setting value can be set to None with values \"null\" or false.\n","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying the setting.","required":true},{"in":"path","name":"setting","schema":{"type":"string"},"required":true}],"tags":["user-management"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/miria-4.6/miria-4.6-fr/documentation-de-reference/reference-de-lapi-rest/user-management.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
