Question about GetUserInfo method of the Box API.
I am doing some integration works with box. I want to enable users collaboration on shared documents. I want collaborator can see each other's profile during the collaboration. But when one user call Box api GetUserInfo to get other user's profile he got following error.
{"type":"error","status":404,"code":"not_found","context_info":{"errors":[{"reason":"invalid_parameter","name":"user","message":"Invalid value 'u_12343567'. 'user' with value 'u_12343567' not found"}]},"help_url":"http://developers.box.com/docs/#errors","message":"Not Found","request_id":"removed for privacy1sdab29asd4ca2a6"}
Is there a way to enable users to get other users' profile in one Teams account?
-
Hello there,
You may be doing it wrong here. If you just need one collaborator to view other collaborator info, you should perform theses steps :
- GET /folders/{id}/collaborations to get the collaboration ID for a specific folder, if there are 3 collaborators then there will be 3 result sets with different collaborator IDs. Use these IDs to get the collaborator information as shown in next step
- use the individual COLLAB_ID that you obtained from step one and fed it to /collaborations/COLLAB_ID where you will get all the information about the collaborators (login, role etc).
You do not need to use GetUserInfo in the case like this. That is only used for Admin purpose to read file contents of other users and so on with "As-User" feature which must be enabled for your API key by requesting a Box via ticket or call.
Hope this helps.
thanks,
Bibek
Please sign in to leave a comment.
Comments
2 comments