Welcome to the new Box Support website. Check out all the details here on what’s changed.

How to get application login/email before using application?

New post

Comments

6 comments

  • Kourtney

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

    0
    Comment actions Permalink
  • royal

      - 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.

    0
    Comment actions Permalink
  • Kourtney

     

     

    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! 🙂 

    0
    Comment actions Permalink
  • Karunanidhi, Kalanithi (Cognizant)

    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. 

    0
    Comment actions Permalink
  • Kourtney

    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

    0
    Comment actions Permalink
  • Karunanidhi, Kalanithi (Cognizant)

    Thank you Kourtney. This information was very helpful. 

    0
    Comment actions Permalink

Please sign in to leave a comment.