Join BoxWorks in San Francisco Nov 12-13! Keynotes, product demos, and Box Master Classes. Reserve your spot!

How to create an email alias for a JWT app?

Answered
New post

Comments

1 comment

  • Official comment
    Jason

    Hi Anirudh,

    You're pretty close! The field you're looking for is "login", on that current_user object. If you take a look at the type of the object returned by client.user().get(), you'll see

    <class 'boxsdk.object.user.User'>

    So, to print out the actual email address to use for collaboration invitations, you'd want to access the 'login' field with something like

    print(user.login)

    Hope that helps! Please let us know if this works for you. 

    Comment actions Permalink

Please sign in to leave a comment.