PUT
/scim/v2/Users/{userId}

Authorization

AuthorizationRequiredBearer <token>

< Project ID >:< Access Key > as bearer

In: header

Request Body

application/jsonRequired
userIdstring
displayNamestring

The following values are manipulated by the marshaler in httpgateway/marshaler.go in case of changing or adding new ones, need to edit the marshaler as well

emailsarray<object>
activeboolean
nameobject
userNamestring
attributesobject

Path Parameters

userIdRequiredstring
curl -X PUT "https://api.descope.com/scim/v2/Users/string" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "string",
    "displayName": "string",
    "emails": [
      {
        "value": "string",
        "primary": true,
        "type": "string"
      }
    ],
    "active": true,
    "name": {
      "givenName": "string",
      "familyName": "string",
      "middleName": "string"
    },
    "userName": "string",
    "attributes": {}
  }'

OK

{
  "user": {
    "schemas": [
      "string"
    ],
    "id": "string",
    "userName": "string",
    "meta": {
      "created": {},
      "location": "string",
      "lastModified": {},
      "resourceType": "string"
    },
    "emails": [
      {
        "value": "string",
        "primary": true,
        "type": "string"
      }
    ],
    "name": {
      "givenName": "string",
      "familyName": "string",
      "middleName": "string"
    },
    "active": true,
    "displayName": "string",
    "detail": "string",
    "attributes": {}
  }
}

Was this helpful?