User Details

The following are Autonomous Identity user details endpoints:

POST /

Get an employee’s entitlements and statistics.

Endpoint

/api/userDetails

Authorization

<Bearer Token JWT-value>

Headers

Content-Type      application/json

Body

{
       “employeeId”: “john.doe”,
       “lastEntitlementId”: “WEB_2”,
       “sortDir”: “asc”,
       “cursor”: “”
}

Example Request

curl --location --request POST '/api/userDetails' \
--header 'Content-Type: application/json' \
--data-raw '{
      “employeeId”: “john.doe”,
      “lastEntitlementId”: “WEB_2”,
      “sortDir”: “asc”,
      “cursor”: “”
}'
POST drivingFactor

Get driving factors

Endpoint

/api/userDetails/drivingFactor

Authorization

<Bearer Token JWT-value>

Headers

Content-Type      application/json

Body

{
	"entitlement": "Web_NAS_Share_Case Management_7HQ"
}

Example Request

curl --location --request POST '/api/userDetails/drivingFactor' \
--header 'Content-Type: application/json' \
--data-raw '{
	"entitlement": "Web_NAS_Share_Case Management_7HQ"
}'
POST search

Search for users by name and with applied filters.

Endpoint

/api/userDetails/search

Authorization

<Bearer Token JWT-value>

Headers

Content-Type      application/json

Body

{
	"username": "a"
}

Example Request

curl --location --request POST '/api/userDetails/search' \
--header 'Content-Type: application/json' \
--data-raw '{
	"username": "elizabeth saiz"
}'

Example Response

{
  "values": [
    {
      "user": "elizabeth.saiz",
      "isentitlementowner": "true",
      "issupervisor": "true",
      "userdisplayname": "Elizabeth Saiz",
      "userdisplayname_lowercase": null
    }
  ]
}
POST Entitlements

Search for entitlements.

Endpoint

/api/userDetails/search/ent

Authorization

<Bearer Token JWT-value>

Headers

Content-Type      application/json

Body

{
	"entitlement": "test"
}

Example Request

curl --location --request POST '/api/userDetails/search/ent' \
--header 'Content-Type: application/json' \
--data-raw '{
	"entitlement": "test"
}'
POST Auto Provision

Get auto provision.

Endpoint

/api/userDetails/ent/autoprovision

Authorization

<Bearer Token JWT-value>

Headers

Content-Type      application/json

Body

{
	"user": "test"
}

+

Example Request

curl --location --request POST '/api/userDetails/ent/autoprovision' \
--header 'Content-Type: application/json' \
--data-raw '{
	"user": "test"
}'
GET Entitlement Decisions

Get current entitlement decisions for a user.

Endpoint

/api/userDetails/decision?user=james.ayache

Authorization

<Bearer Token JWT-value>

Headers

Content-Type      application/json

Params

user              james.ayache

Example Request

curl --location --request GET '/api/userDetails/decisions?user=james.ayache' \
--header 'Content-Type: application/json' \
--data-raw ''
POST Entitlement Decisions

Update entitlement decisions for users.

Endpoint

/api/userDetails/decision

Authorization

<Bearer Token JWT-value>

Headers

Content-Type      application/json

Example Request

curl --location --request POST '/api/userDetails/decision' \
--header 'Content-Type: application/json' \
--data-raw '{
	"users": [
        "james.ayache",
        "other.user"
    ],
    "entitlements": [
        "ABC",
        "DEFFF"
    ],
    "is_certified": true
}'