How to look up user by username or email?
回答済みI have a service account that wants to perform an operation as a user using the "As-User" header (or do some other operation regarding a user). However, the code that is going to be making these calls only has the user's username (which is also their email address - I'm not sure if this is always true, but it appears to be).
How can I resolve a username to a user ID? There doesn't seem to be a REST API endpoint to search for users by username/email.
-
On thinking about it a little more, I realised that it only makes sense to be able to do this within a given enterprise - I shouldn't be able to look up the ID for any user anywhere in Box.
Which led me to find this: https://docs.box.com/v2.0/reference#get-all-users-in-an-enterprise, where it looks like I can use the filter_term query parameter to find the user by login or name.
サインインしてコメントを残してください。
コメント
1件のコメント