/userEntitlements: User Entitlements

URL:
https://[root]/content/listings/[itemID]/userEntitlements
Methods:
GET
Child Resources:
Username

Example Usage

Use dark colors for code blocksCopy
1
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

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
    "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

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
    "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"
            ]
        }
    ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.