Skip To Content

/userEntitlements: User Entitlements

  • URL: https://[root]/content/listings/[itemID]/userEntitlements

Example Usage

https://www.arcgis.com/sharing/rest/content/listings/faa0a4deb84a4eaaa02ddad0c2b7a133/userEntitlements?f=json

Description

This operation allows purchasing organization administrators or a user with Manage Licenses privilege to retrieve all user entitlements assigned to users in their organization.

A JSON document representing the set of entitlements assigned to the specified set of users.

Request Parameters

ParameterDetails
F

JSON

Token

AdminToken or token of user with Manage licenses privilege.

JSON Response Syntax

{
    "userEntitlements": [
        {
            "username": "<username1>",
            "lastLogin": -1, // timestamp (in ms from epoch) when user last logged in to this app, -1 implies never
            "disconnected": false
            "entitlements": [
                "<userEntitlement String>" //unique identifier of the product - typically listing id is used
            ]
        },
        {
            "username": "<username2>",
            "lastLogin": -1,
            "disconnected": false,
            "entitlements": [
                "<userEntitlement String>"
            ]
        }
    ]
}

JSON Response Example

{
    "userEntitlements": [
        {
            "username": "jsmith",
            "lastLogin": -1, // timestamp (in ms from epoch) when user last logged in to this app, -1 implies never
            "disconnected": false
            "entitlements": [
                ""
            ]
        },
        {
            "username": "johndoe",
            "lastLogin": -1,
            "disconnected": false,
            "entitlements": [
                "faa0a4deb84a4eaaa02ddad0c2b7a133"
            ]
        }
    ]
}