Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

How to create an email alias for a JWT app?

Répondu
Nouvelle publication

Commentaires

1 commentaire

  • Commentaire officiel
    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. 

    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.