---
schema_version: "1"
id: 496da2065ad183139f699a4f00e56c13f0fe9ef6dd604c5258cad0bd7764c658
title: Query for User Information
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/remoteaccess_using_userinfo_endpoint.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.remoteaccess_using_userinfo_endpoint.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3c6840296fa1c3f277e5af684faa057e24dc45433739225bfd8af35aabd8020f
description: A connected app can query the UserInfo endpoint for information about the user associated with the connected app’s access token. Salesforce returns basic personal information about the user and important endpoints that the connected app can talk to, such as photos and accessible API endpoints. This UserInfo endpoint provides access to information only for the current user. It doesn’t give access to other users in the org.
products:
  - Security
  - Cross Cloud
release: "264"
---
# Query for User Information

A connected app can query the UserInfo endpoint for information about the user associated with the connected app’s access token. Salesforce returns basic personal information about the user and important endpoints that the connected app can talk to, such as photos and accessible API endpoints. This UserInfo endpoint provides access to information only for the current user. It doesn’t give access to other users in the org.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>All</strong> Editions</td></tr></tbody></table>

The UserInfo endpoint is a RESTful API defined by OpenID Connect. The format of the endpoint’s URL is: https://login.salesforce.com/services/oauth2/userinfo.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-identity-264-0-0-production-enus/699dab6f-8f1a-4662-b24f-6521d5b747f7/images/icon_note.png)

Note For a [sandbox](https://help.salesforce.com/s/articleView?id=platform.create_test_instance.htm&type=5&language=en_US), login.salesforce.com is replaced with test.salesforce.com. For an Experience Cloud site, login.salesforce.com is replaced with the site’s URL, such as MyDomainName.my.site.com/.well-known/openid-configuration. The URL must be HTTPS.

Here’s the flow for querying the UserInfo Endpoint.

1. The connected app sends a query to the Salesforce UserInfo endpoint. The query must contain the connected app’s access token.
2. Salesforce responds with the user’s information.

## Query the UserInfo Endpoint

Use these parameters to query the UserInfo endpoint. You can use the access token in an authorization request header or in a request with the `oauth_token` parameter.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-identity-264-0-0-production-enus/699dab6f-8f1a-4662-b24f-6521d5b747f7/images/icon_important.png)

Important When developing OAuth integrations, always pass sensitive information in the body of a POST request or in a request header. Don't use GET parameters in the URL query string to pass sensitive information. Sensitive information includes but isn't limited to usernames, passwords, OAuth tokens, client secrets, and any personally identifiable information. For more information on security best practices, see [Storing Sensitive Data](https://developer.salesforce.com/docs/atlas.en-us.secure_coding_guide.meta/secure_coding_guide/secure_coding_storing_sensitive_data.htm) in the Secure Coding Guide.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:30%">
          <col style="width:70%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d30390e130">Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d30390e133">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e130 ">
              <span id="remoteaccess_using_userinfo_endpoint__d225e174"><a name="remoteaccess_using_userinfo_endpoint__d225e174"><!-- --></a>
                <samp class="parmname">oauth_token</samp>
              </span>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e133 ">OAuth token that a connected app uses to request access to a protected
              resource on behalf of the client application. Additional permissions in the form of
              scopes can accompany the access token.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e130 ">
              <samp class="parmname">format</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e133 ">
              <p>Optional. Specify the format of the returned output. Values are: </p>
              <ul>
                <li><code>json</code></li>
                <li><code>xml</code></li>
              </ul>
              <p>The client can also specify the returned format in an accept-request
                header using one of the following formats.</p>
              <ul>
                <li><code>Accept: application/json</code></li>
                <li><code>Accept: application/xml</code></li>
                <li><code>Accept:
                            application/x-www-form-urlencoded</code></li>
              </ul>
              <p>The request header also supports the following.</p>
              <ul>
                <li>The <code>*/*</code> wildcard is accepted and
                  returns JSON.</li>
                <li>A list of values, which is checked left to right. For example: <code>application/xml,application/json,application/html,*/*</code> returns
                  XML.</li>
              </ul>
              <p style="margin-bottom:0;">The <code>format</code> parameter takes
                precedence over the access request header.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e130 ">
              <samp class="parmname">version</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e133 ">Optional. Specify a SOAP API version number or the literal string <code>latest</code>. If this value isn’t specified, the returned
              API URLs contain the literal value <code>{version}</code>
              in place of the version number. If the value is specified as <code>latest</code>, the most recent API version is
              used.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e130 ">
              <samp class="parmname">PrettyPrint</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e133 ">Optional. Accepted only in a header and not as a URL parameter. Specify this
              parameter to optimize the returned XML or JSON output for readability rather than
              size. For example, use the following in a header: <code>X-PrettyPrint:1</code>. </td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e130 ">
              <samp class="parmname">callback</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e133 ">
              <p>Optional. Specify a valid JavaScript function name. You can use this
                parameter when the specified format is JSON. The output is wrapped in this
                function name (JSONP). For example, if a request to
                <samp class="filepath">https://server/id/orgid/userid/</samp> returns <code>{"function":"name"}</code>, a request to
                <samp class="filepath">https://server/id/orgid/userid/?callback=baz</samp> returns
                <code>baz({"function":"name"});</code>.
              </p>
              <div class="slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium">
                <div class="slds-media slds-media_responsive">
                  <div class="slds-media__figure"><span class="slds-icon_container slds-icon_container_circle slds-icon-note-note"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-identity-264-0-0-production-enus/699dab6f-8f1a-4662-b24f-6521d5b747f7/images/icon_note.png" alt="Note"></span></div>
                  <div class="slds-media__body" style="padding-top:.5rem;padding-bottom:.5rem;"><span class="slds-text-title_caps">Note</span> JSONP is no
                    longer returned for Identity Service requests due to strict MIME typing. Your
                    requests must add <code>'format=jsonp'</code>
                    with the callback parameter so that the Identity Service returns JavaScript.
                    When the Identity Service detects the JSONP format, it returns the required
                    JavaScript type (<code>'application/javascript'</code>).</div>
                </div>
              </div>
            </td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e130 ">
              <samp class="parmname">is_salesforce_integration_user</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e133 ">Optional. Specify this parameter to determine if the user has the
              Salesforce Integration user license.</td>

          </tr>
        </tbody>
      </table>

## Salesforce UserInfo Endpoint Responds

After making a valid request, Salesforce returns the information in JSON format by default, or the format specified in the format parameter.

The response includes values listed in the [OpenID Connect Basic Client Profile](http://openid.net/specs/openid-connect-basic-1_0-28.html#StandardClaims), Salesforce user ID, org ID, feed, and profile URLs.

In the response, the email\_verified attribute reflects whether users verify their email after this scenario occurs: For example, a Salesforce admin creates the user Roberta Smith. Roberta receives a “Welcome to Salesforce” email message with a link to verify her account. After she clicks the link, the email\_verified value is set to `true`.

- They change their email address
- They change their password, or a Salesforce admin resets their password
- They verify their identity when logging in from a new device or browser
- A Salesforce admin creates them as a new user

The following is a response in JSON format.

```
{"sub":"https://login.salesforce.com/id/00Dx000.../005x000...",
"user_id":"005x000...",
"organization_id":"00Dx000...",
"name":"yourInstance LastName",
"email":"user1@1135222488950007.com",
"email_verified":true,"given_name":"yourInstance","family_name":"LastName",
"zoneinfo":"America/Los_Angeles",
"photos":{"picture":"https://yourInstance.salesforce.com/profilephoto/005/F","thumbnail":"https://yourInstance.salesforce.com/profilephoto/005/T"},
"profile":"https://yourInstance.salesforce.com/005x000...",
"picture":"https://yourInstance.salesforce.com/profilephoto/005/F",
"address":{"country":"us"},
"urls":{"enterprise":"https://yourInstance.salesforce.com/services/Soap/c/{version}/00Dx00...",
"partner":"https://yourInstance.salesforce.com/services/Soap/u/{version}/00Dx00...",
"rest":"https://yourInstance.salesforce.com/services/data/v{version}/",
"sobjects":"https://yourInstance.salesforce.com/services/data/v{version}/sobjects/",
"search":"https://yourInstance.salesforce.com/services/data/v{version}/search/",
"query":"https://yourInstance.salesforce.com/services/data/v{version}/query/",
"recent":"https://yourInstance.salesforce.com/services/data/v{version}/recent/",
"profile":"https://yourInstance.salesforce.com/005x000...",
"feeds":"https://yourInstance.salesforce.com/services/data/v{version}/chatter/feeds",
"groups":"https://yourInstance.salesforce.com/services/data/v{version}/chatter/groups",
"users":"https://yourInstance.salesforce.com/services/data/v{version}/chatter/users",
"feed_items":"https://yourInstance.salesforce.com/services/data/v{version}/chatter/feed-items"},
"active":true,"user_type":"STANDARD","language":"en_US","locale":"en_US",
"utcOffset":-28800000,"updated_at":"2013-12-02T18:46:42Z"}
```

The following is a response in XML format.

```
<?xml version="1.0" encoding="UTF-8"?>
<user>
<sub>https://login.salesforce.com/id/00Dx000.../005x000...</sub>
<user_id>005x000...</user_id>
<organization_id>00Dx000...</organization_id>
<preferred_username>user1@1135222488950007.com</preferred_username>
<nickname>user1.3860098879512678E12</nickname>
<name>user1 LastName</name>
<email>user1@1135222488950007.com</email>
<email_verified>true</email_verified>
<given_name>user1</given_name>
<family_name>LastName</family_name>
<zoneinfo>America/Los_Angeles</zoneinfo>
<photos>
<picture>https://yourInstance.salesforce.com/profilephoto/005/F</picture>
<thumbnail>https://yourInstance.salesforce.com/profilephoto/005/T</thumbnail></photos>
<profile>https://yourInstance.salesforce.com/005x000...</profile>
<picture>https://yourInstance.salesforce.com/profilephoto/005/F</picture>
<address>
<country>us</country>
</address>
<urls>
<enterprise>https://yourInstance.salesforce.com/services/Soap/c/{version}/00Dx0000002rIh1</enterprise>
<metadata>https://yourInstance.salesforce.com/services/Soap/m/{version}/00Dx0000002rIh1</metadata>
<partner>https://yourInstance.salesforce.com/services/Soap/u/{version}/00Dx0000002rIh1</partner>
<rest>https://yourInstance.salesforce.com/services/data/v{version}/</rest>
<sobjects>https://yourInstance.salesforce.com/services/data/v{version}/sobjects/</sobjects>
<search>https://yourInstance.salesforce.com/services/data/v{version}/search/</search>
<query>https://yourInstance.salesforce.com/services/data/v{version}/query/</query>
<recent>https://yourInstance.salesforce.com/services/data/v{version}/recent/</recent>
<profile>https://yourInstance.salesforce.com/005x000...</profile>
<feeds>https://yourInstance.salesforce.com/services/data/v{version}/chatter/feeds</feeds>
<groups>https://yourInstance.salesforce.com/services/data/v{version}/chatter/groups</groups>
<users>https://yourInstance.salesforce.com/services/data/v{version}/chatter/users</users>
<feed_items>https://yourInstance.salesforce.com/services/data/v{version}/chatter/feed-items</feed_items>
</urls>
<active>true</active>
<user_type>STANDARD</user_type>
<language>en_US</language>
<locale>en_US</locale>
<utcOffset>-28800000</utcOffset>
<updated_at>2013-12-02T18:46:42.000Z</updated_at>
</user>
```

Here are descriptions for the returned parameters.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:30%">
          <col style="width:70%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d30390e463">Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d30390e466">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>sub</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">The URL for the UserInfo endpoint, which is the same URL that was queried.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>user_id</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">User ID of the queried user.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>organization_id</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">ID of the queried user’s Salesforce org.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>preferred_username</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">Username of the queried user.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>nickname</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">Experience Cloud nickname of the queried user.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>name</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">Display name (full name) of the queried user.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>email</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">Email address of the queried user.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>email_verified</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">
              <p>Indicates whether the queried user’s email was verified by clicking a link in the
                “Welcome to Salesforce” email.</p>
              <p>The <samp class="parmname">email_verified</samp> value is set to
                <code>true</code> when users click a link in the email they
                receive after this scenario occurs: For example, a Salesforce admin creates the user
                Roberta Smith. Roberta receives a “Welcome to Salesforce” email message with a link to
                verify her account. After she clicks the link, the <samp class="parmname">email_verified</samp>
                value is set to <code>true</code>.
              </p>
              <ul>
                <li>They change their email address</li>
                <li>They change their password, or a Salesforce admin resets their password</li>
                <li>They verify their identity when logging in from a new device or browser</li>
                <li>A Salesforce admin creates them as a new user</li>
              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>given_name</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">First name of the queried user.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>family_name</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">Family name of the queried user.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>zoneinfo</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">Time zone specified in the queried user’s settings</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>photos</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">
              <p>Map of URLs to the queried user’s profile pictures, specified as <code>picture</code>, <code>thumbnail</code>, or
                <code>profile</code>.
              </p>
              <div class="slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium">
                <div class="slds-media slds-media_responsive">
                  <div class="slds-media__figure"><span class="slds-icon_container slds-icon_container_circle slds-icon-note-note"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-identity-264-0-0-production-enus/699dab6f-8f1a-4662-b24f-6521d5b747f7/images/icon_note.png" alt="Note"></span></div>
                  <div class="slds-media__body" style="padding-top:.5rem;padding-bottom:.5rem;"><span class="slds-text-title_caps">Note</span> Accessing these URLs requires passing
                    an access token.</div>
                </div>
              </div>
            </td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>address</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">Address of the queried user, which can include the user’s street, city, state,
              country, and ZIP code.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>mobile_phone</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">Mobile phone number specified in the queried user’s settings.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>mobile_phone_verified</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">Queried user confirmed that the mobile phone number is valid,</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>urls</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">
              <p>Map containing various API endpoints that can be used with the queried user
              </p>
              <div class="slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium">
                <div class="slds-media slds-media_responsive">
                  <div class="slds-media__figure"><span class="slds-icon_container slds-icon_container_circle slds-icon-note-note"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-identity-264-0-0-production-enus/699dab6f-8f1a-4662-b24f-6521d5b747f7/images/icon_note.png" alt="Note"></span></div>
                  <div class="slds-media__body" style="padding-top:.5rem;padding-bottom:.5rem;"><span class="slds-text-title_caps">Note</span> Accessing the REST endpoints requires passing an access token.</div>
                </div>
              </div>
              <ul>
                <li><code>enterprise</code> (SOAP)</li>
                <li><code>metadata</code> (SOAP)</li>
                <li><code>partner</code> (SOAP)</li>
                <li><code>rest</code> (REST)</li>
                <li><code>sobjects</code> (REST)</li>
                <li><code>search</code> (REST)</li>
                <li><code>query</code> (REST)</li>
                <li><code>recent</code> (REST)</li>
                <li><code>profile</code></li>
                <li><code>feeds</code> (Chatter)</li>
                <li><code>feed-items</code> (Chatter)</li>
                <li><code>groups</code> (Chatter)</li>
                <li><code>users</code> (Chatter)</li>
                <li><code>custom_domain</code>
                  <p>If the org doesn’t have a custom
                    domain configured and propagated, this value is omitted.</p>
                </li>
              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>active</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">Boolean specifying whether the queried user is active.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>user_type</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">Type of the queried user.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>language</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">Language of the queried user.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>locale</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">Locale of the queried user.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>utcOffset</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">Offset from UTC of the queried user’s time zone, in milliseconds.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>updated_at</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 "><code>xsd datetime</code> format of the last modification of
              the user, for example, 2010-06-28T20:54:09.000Z.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>is_app_installed</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">Value is <code>true</code> when the connected app is
              installed in the user’s org, and the user’s access token was created using an OAuth flow.
              If the connected app isn’t installed, the response doesn’t contain this value. When parsing
              the response, check for the existence and value of this property.</td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>mobile_policy</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">
              <p>Specific values for managing a mobile connected app. These values are available only
                when the connected app is installed in the current user’s org, the app has a defined
                session timeout value, and the mobile PIN has a length value defined.</p>
              <ul>
                <li><code>screen_lock</code>—Length of time to wait to lock
                  the screen after inactivity.</li>
                <li><code>pin_length</code>—Length of the identification
                  number required to gain access to the mobile app.</li>
              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>push_service_type</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">
              <p>Set to <code>apple</code> if the connected app is registered
                with Apple Push Notification Service (APNS) for iOS push notifications. Set to <code>androidGcm</code> if it’s registered with Google Cloud Messaging
                (GCM) for Android push notifications. </p>
              <p style="margin-bottom:0;">The response value type is an array.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e463 ">
              <code>custom_permissions</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d30390e466 ">
              <p>
                <span id="remoteaccess_using_userinfo_endpoint__custom_perm_scope_desc"><a name="remoteaccess_using_userinfo_endpoint__custom_perm_scope_desc"><!-- --></a>When a request includes the <code>custom_permissions</code> scope parameter, the response includes a
                  map containing custom permissions in the org associated with the connected app. If the
                  connected app isn’t installed in the org or has no associated custom permissions, the
                  response doesn’t contain a <code>custom_permissions</code>
                  map.</span>
              </p>
              <div>
                <p>Here’s an example
                  request.</p>
                <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>http://<var>MyDomainName</var>.my.salesforce.com/services/oauth2/authorize?response_type=token&amp;client_
          id=3MVG9lKcPoNINVBKV6EgVJiF.snSDwh6_2wSS7BrOhHGEJkC_&amp;redirect_uri=http://www.example.org/qa/security/oauth
          /useragent_flow_callback.jsp&amp;scope=api%20id%20custom_permissions
         </code></pre>
              </div>
              <div>
                <p>Here’s
                  the JSON block in the identity URL
                  response.</p>
                <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>"custom_permissions":
           {
           "Email.View":true,
           "Email.Create":false,
           "Email.Delete":false
           }
          </code></pre>
              </div>
            </td>

          </tr>
        </tbody>
      </table>

The following are possible responses from Salesforce to an invalid request.

 
| Error Code | Request Problem |
| --- | --- |
| 403 (forbidden) — HTTPS\_Required | HTTP |
| 403 (forbidden) — Missing\_OAuth\_Token | Missing access token |
| 403 (forbidden) — Bad\_OAuth\_Token | Invalid access token |
| 403 (forbidden) — Wrong\_Org | Users in a different org |
| 404 (not found) — Bad\_Id | Invalid or bad user or org ID |
| 404 (not found) — Inactive | Deactivated user or inactive org |
| 404 (not found) — No\_Access | User lacks proper access to org or information |
| 404 (not found) — No\_Site\_Endpoint | Request to an invalid endpoint of a site |
| 404 (not found) — Internal Error | No response from server |
| 406 (not acceptable) — Invalid\_Version | Invalid version |
| 406 (not acceptable) — Invalid\_Callback | Invalid callback |