Skip to content

View and Update User Profiles

You can update the information on a user's profile as explained.

Use the Management Console

Follow the instructions given below to update a user using management console.

  1. On the Main > Identity tab in the Management Console, click List under Users and Roles.
  2. Click Users. This link is only visible to users with the Admin role.
  3. You will see the list of users that are available and you can click Update Profile if you want to update the profile of a particular user.

    update-profile-in-console

  4. There you can update the details of the user and click Update.

Other than updating user profile details, you can also change the password of the user and assign more roles to the user.

Use the SCIM 2.0 REST API

You can update a user profile using a SCIM 2.0 request as shown below.

Request

curl -v -k --user [username]:[password] -X PATCH -d '{"schemas":[],"Operations":[{"op":[operation],"value":{[attributeName]:[attribute value]}}]}' --header "Content-Type:application/json" https://localhost:9443/scim2/Users/[userID]

Below is a sample request and its corresponding response using SCIM 2.0.

Sample Request

curl -v -k --user admin:admin -X PATCH -d '{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","value":{"nickName":"shaggy"}}]}' --header "Content-Type:application/json" https://localhost:9443/scim2/Users/c8c821ba-1200-495e-a775-79b260e717bd


Sample Response

{
    "emails":[
        {"type":"work","value":"kim_j@wso2.com"},
        {"type":"home","value":"kim.jack@gmail.com"}
    ],
    "meta":{
        "created":"2018-08-15T14:55:23Z",
        "location":"https://localhost:9443/scim2/Users/c8c821ba-1200-495e-a775-79b260e717bd",
        "lastModified":"2018-08-16T14:46:07Z",
        "resourceType":"User"
    },
    "nickName":"shaggy",
    "schemas":[
        "urn:ietf:params:scim:schemas:core:2.0:User",
        "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
    ],
    "roles":[
        {"type":"default","value":"Internal/everyone"}
    ],
    "name":{"givenName":"kim","familyName":"jackson"},
    "id":"c8c821ba-1200-495e-a775-79b260e717bd",
    "userName":"kim"
}

Top