Accelerate the Value of Data

Update Users

The Update Users API request overrides the users completely with the data sent in the request body. The roles and tenants must be specified in the new format under the "userPermissions" property. Request body must be an array with Reltio user object.

Table 1. Update User Permissions Details
Request Type PUT
URL {oauth_uri}/users/{userName}
Parameters userName: User name of the user whose roles/tenants needs to be updated.
Access Access ROLE_ADMIN_CUSTOMER is required

Response

Returns the successfully updated user object.

Updating User Details

Request

PUT {oauth_uri}/users/testdemouser@reltio.com
Headers: Authorization: Bearer <Access-Token>
Request Body:
        {
        "customer": "TestCustomer",
        "username": "testdemouser@reltio.com",
        "email": "testdemouser@reltio.com",
        "externalTokens": [],
        "enabled": true,
        "accountNonExpired": true,
        "credentialsNonExpired": true,
        "accountNonLocked": true,
        "externalUser": false,
        "locale": "en",
        "timezone": "UTC",
        "userPermissions":{
        "roles": {
                    "ROLE_API":["t1", "t2"],
                    "ROLE_ADMIN_TENANT":["t1", "t3"],
                    "ROLE_USER": ["t3"]
                }
        },
        "groups": []
    }         
            

Response

{
    "customer": "TestCustomer",
    "username": "testdemouser@reltio.com",
    "email": "testdemouser@reltio.com",
    "entity": null,
    "externalTokens": [],
    "tenants": [],
    "enabled": true,
    "accountNonExpired": true,
    "credentialsNonExpired": true,
    "accountNonLocked": true,
    "roles": [],
    "externalUser": false,
    "locale": "en",
    "timezone": "UTC",
    "userPermissions": {
        "roles": {
            "ROLE_API": [
                "t1",
                "t2"
            ],
            "ROLE_ADMIN_TENANT": [
                "t1",
                "t3"
            ],
            "ROLE_USER": [
                "t3"
            ]
        },
        "permissions": {},
        "permissionsByService": {}
    },
    "groups": []
}