/self: User Self

URL:
https://[root]/community/self
Methods:
GET

Example Usage

URL for Self

Use dark colors for code blocksCopy
1
https://www.arcgis.com/sharing/rest/community/self

Description

This resource allows discovery of the current authenticated user identified by the token.

Request Parameters

ParameterDetails

[Common Parameters]

For a complete listing, see Common parameters.

appInfoToken

Token about which you want to get information about. This can be any type of token: User Token, App Token, or API Token. The token can be active or expired.

Information such as client_id for which the token was generated, developer credentials item id, token's expiration date. This information will be returned in the appInfo response object.

The token and appInfoToken (item owner in case of "App Token") should belong to the member of the same organization.

If specified, token parameter cannot be an "API Token".

Response Properties

PropertyDetails

[User Response Properties]

See User for response properties.

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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  "username": "<username>",
  "fullName": "<first name> <last name>",
  "preferredView": "Web | GIS | null",
  "description": "<description>",
  "email": "<email address>",
  "access": "private | org | public",
  "storageUsage": <storage used - bytes>,
  "storageQuota": <storage quota - bytes>,
  "orgId": "<Organization id>",
  "role": "org_admin | org_publisher | org_user",
  "tags": [
      "<tag1>",
      "<tag2>"
],
  "culture": "<culture code>",
  "region": "<region>",
  "thumbnail": "<file name>",
  "created": date created shown in UNIX time,
  "modified": date modified shown in UNIX time,
  "groups": [{
    "id": "<group id>",
    "title": "<group title>",
    "isInvitationOnly": true | false,
    "owner": "<group owner username>",
    "description": "<description>",
    "snippet": "<summary>",
    "tags": [
      "<tag1>",
      "<tag2>",
      "<tag3>"
    ],
    "phone": "<contact>",
    "thumbnail": "<file name>",
    "created": date created shown in UNIX time,
    "modified": date modified shown in UNIX time,
    "access": "private | org | public"
    "userMembership": {
      "username": "<username>",
      "memberType": "<owner>",
      "applications": 0
    }
  }]
}

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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  "username": "jsmith",
  "fullName": "John Smith",
  "preferredView": "Web",
  "description": "Senior GIS Analyst for the city of Redlands.",
  "email": "jsmith33@esri.com",
  "access": "public",
  "storageUsage": 583650,
  "storageQuota": 2147483648,
  "orgId": "RSucA4urelpstn03",
  "role": "org_admin",
  "tags": [
      "<GIS Analyst>",
      "<City of Redlands>"
],
  "culture": "en",
  "region": "US",
  "thumbnail": "<myProfile.jpg>",
  "created": 1258501046000,
  "modified": 1290625562000,
  "groups": [{
    "id": "0657d48d0c0841d793ea6ada2e6955f3",
    "title": "Street Maps",
    "isInvitationOnly": false,
    "owner": "jsmith",
    "description": "The street map group provides street maps for the city of Redlands.",
    "snippet": "City of Redlands maps",
    "tags": [
      "Redlands",
      "street",
      "maps"
    ],
    "phone": "https://www.esri.com",
    "thumbnail": "streets.jpg",
    "created": 1258501221000,
    "modified": 1272309404000,
    "userMembership": {
      "username": "jsmith",
      "memberType": "owner",
      "applications": 0
    }
  }]
}

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