# Why my userID alway is 16778240?

**URL:** <https://devforum.zoom.us/t/why-my-userid-alway-is-16778240/57877>\
**Category:** Android\
**Created:** [September 23, 2021, 11:54am UTC](https://devforum.zoom.us/t/why-my-userid-alway-is-16778240/57877 "2021-09-23T11:54:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenjivn](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kenjivn/32/31293_2.png) [@kenjivn](https://devforum.zoom.us/u/kenjivn)\
**Post date:** [September 23, 2021, 11:54am UTC](https://devforum.zoom.us/t/why-my-userid-alway-is-16778240/57877/1 "2021-09-23T11:54:08Z")

</div>

**Description**  
userID alway is 16778240

**Which Android Video SDK version?**  
zoom-video-sdk-android-1.1.1

I use JWTUtil.createJWTAccessToken to create token, apiKey and apiSecret i take from App credentials of Videos app sdk

**Screenshots**  
If applicable, add screenshots to help explain your problem.

**Smartphone (please complete the following information):**

- OS: Android 10

---

<div class="post-metadata">

**Author:** ![jackyjoy123](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackyjoy123/32/21826_2.png) [@jackyjoy123](https://devforum.zoom.us/u/jackyjoy123)\
**Post date:** [September 23, 2021, 1:09pm UTC](https://devforum.zoom.us/t/why-my-userid-alway-is-16778240/57877/2 "2021-09-23T13:09:20Z")

</div>

thanks for the awesome information.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [September 23, 2021, 7:23pm UTC](https://devforum.zoom.us/t/why-my-userid-alway-is-16778240/57877/3 "2021-09-23T19:23:01Z")

</div>

Hi @kenjivn, thanks for the post.

Can you please verify which method you are using to retrieve the ID?

Thanks!

---

<div class="post-metadata">

**Author:** ![kenjivn](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kenjivn/32/31293_2.png) [@kenjivn](https://devforum.zoom.us/u/kenjivn)\
**Post date:** [September 24, 2021, 1:29am UTC](https://devforum.zoom.us/t/why-my-userid-alway-is-16778240/57877/4 "2021-09-24T01:29:20Z")

</div>

Hi @jon.zoom,

1. Init sdk:

```auto
    ZoomVideoSDKInitParams params = new ZoomVideoSDKInitParams();
    params.domain = "https://zoom.us"; // Required
    params.logFilePrefix = LOG_TAG; // Optional for debugging
    params.enableLog = true; // Optional for debugging
    ZoomVideoSDK sdk = ZoomVideoSDK.getInstance();
    int initResult = sdk.initialize(mContext, params);

```

1. JoinOrCreateSession:

```auto
    ZoomVideoSDKSessionContext sessionContext = new ZoomVideoSDKSessionContext();
    sessionContext.sessionName = "zp95869048";

    String sessionId = "zp95869048";
    String userID = "demoabc";
    String apiKey; //from app
    String apiSecret; //from app

    sessionContext.userName = userID;
    sessionContext.token = JWTUtil.createJWTAccessToken(sessionId, userID, apiKey, apiSecret);
    ZoomVideoSDKSession session = ZoomVideoSDK.getInstance().joinSession(sessionContext);

```

 ![1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/0/80582a8701a579267121b20b87eb56bc85632457.png)

1. Get User info in onSessionJoin of ZoomVideoSDKDelegate:

```auto
 ZoomVideoSDKSession sdkSession = ZoomVideoSDK.getInstance().getSession();
 String userID = sdkSession.getMySelf().getUserID(); //userID return "16778240", not "demoabc"

```

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [September 24, 2021, 3:59pm UTC](https://devforum.zoom.us/t/why-my-userid-alway-is-16778240/57877/5 "2021-09-24T15:59:27Z")

</div>

Hi @kenjivn,

The value returned by `getUserID` is generated by Zoom’s back end. It seems that you are looking for the value provided in the `user_identity` field of the JWT, which would be retrieved from the [`getCustomIdentity`](https://marketplacefront.zoom.us/sdk/custom/android/us/zoom/sdk/ZoomVideoSDKUser.html#getCustomIdentity--) method.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [October 25, 2021, 1:59am UTC](https://devforum.zoom.us/t/why-my-userid-alway-is-16778240/57877/6 "2021-10-25T01:59:38Z")

</div>

Closed on October 25, 2021, 1:59am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
