-1

I have created the service account and can see the details in admin console, I need to get the service accounts userid without going to admin console. Is there a api call for that?

ss301
  • 514
  • 9
  • 22

2 Answers2

1

Yes, you can use the Get Current User API call: https://developer.box.com/reference/get-users-me/

The response will contain the ID for the current user, which is normally your service account when using JWT Auth: https://developer.box.com/guides/authentication/jwt/with-sdk/

Here is a recent forum post which is similar: https://support.box.com/hc/en-us/community/posts/360049526313-How-to-create-an-email-alias-for-a-JWT-app-

Dharman
  • 30,962
  • 25
  • 85
  • 135
Jason Pan
  • 11
  • 1
0

The mailid/userid will be visible to the admin in admin console. The easiest way is to contact the admin to get it.

ss301
  • 514
  • 9
  • 22