oAuth - how to get user's ExternalEmail
Options
Retrieve.D.984
Posts: 2 🌱
A customer of ours has asked us to build an oAuth Login option into our product from their Brightspace platform.
We have the oAuth wired up, and I can use the oAuth code to call /users/whoami but this only gives me the user's Brightspace id (Identifier) - I need to get the user's ExternalEmail which I don't appear to be able to get anywhere except for /users/{userId}, and while I have the userId, this user does't have permission to call /users/{userId}.
Is there something like /users/whoami that gives the exteranalEmail or way for users to get their own /users/{userId}?
We have the oAuth wired up, and I can use the oAuth code to call /users/whoami but this only gives me the user's Brightspace id (Identifier) - I need to get the user's ExternalEmail which I don't appear to be able to get anywhere except for /users/{userId}, and while I have the userId, this user does't have permission to call /users/{userId}.
Is there something like /users/whoami that gives the exteranalEmail or way for users to get their own /users/{userId}?
Answers
-
Hi there, for a specific situation such as this, it would be best to connect with your institution's Brightspace support team. If you need assistance with contacting your support team, please let me know and I can connect with you via DM here in the Community.
-
@Alex.V.58 can you connect me with support please? I don't have a solution to this problem yet. I am hoping there is a setting that opens up api permission to call /users/{userId} for one's self.
-
I will send you a DM!