Skip to main content
Question

How to get application login/email before using application?

  • May 22, 2025
  • 6 replies
  • 44 views

Forum|alt.badge.img

Is there a way for an app owner to get an app's login/email (e.g. ***email address removed for privacy***) before you begin writing code for the app?

Or is a ticket to support the best way?

 

Use case: we may have "apps" that are configured through the Developer Console, for the purpose of supporting vendor-provided integrations, and want to either track activity from that integration or restrict that app to certain folders through collaborations.  The users who configure these apps may or may not be software developers themselves.

6 replies

Forum|alt.badge.img

 Can you please clarify what you mean by "app's login/email"? 


Forum|alt.badge.img

  - I did, but the forum censored my example.

Box seems to assign each app a "login" of the form

AppUser_

followed by an integer, another underscore, an alphanumeric string, and "@" boxdevedition.com.

 

That's what we want to be able to obtain, before any code is written.


Forum|alt.badge.img

 

 

Ahhh thanks for clarifying! I believe you're talking about a JWT app's service account, which is created as soon as the app is authorized in the admin console. For example: AutomationUser_567802_XXXXXXX@boxdevedition.com

 

This will always be in the format: AutomationUser_(application service id) _ random string @boxdevedition.com

 

1.) Via the UI - you can use the admin console > content manager > search for the name of the app > right click on the app name and select "login to user's account" > from within in this account use the top right hand corner go to account settings > the email address will be shown under "login and email addresses"

 

2.) Via the API: Use the default token for a JWT application, which will be for the Service Account (AutomationUser) and use the endpoint: https://developer.box.com/reference#get-the-current-users-information

 

We do have on our roadmap to better expose this information so keep an eye out! 🙂 


Forum|alt.badge.img

Hi,

I logged in to admin console and followed the steps. However, console it is not taking to me to the respective account (app) when I click on "login to user's account" on name of the App, rather it is taking me to the my account page. 


Forum|alt.badge.img

Hello, 

It appears you are a co-admin, which is why this is occurring. Your primary admin will need to do this or you will need to opt for #2 above and make a call to this endpoint: https://developer.box.com/reference#get-the-current-users-information

 

Best, 

Kourtney


Forum|alt.badge.img

Thank you Kourtney. This information was very helpful.