box-python-sdk
box-python-sdk copied to clipboard
Can't get any external user
I can't get any information about external users with below code,
users = client.users(user_type='external')
It just return the empty.
Versions Used
Python SDK: 2.12.1 Python: 3.8.10
Thanks any help.
Hi @c-rei,
Thanks for submitting this Issue! We will take a look and get back to you ASAP!
@arjankowski
This issue has been automatically marked as stale because it has not been updated in the last 30 days. It will be closed if no further activity occurs within the next 7 days. Feel free to reach out or mention Box SDK team member for further help and resources if they are needed.
Hi @c-rei ,
The documentation of this endpoint https://developer.box.com/reference/get-users/ says, that
if user_type=external
, then you also need to pass filter_term
.
external returns all external users for whom the login matches the filter_term exactly.
What is more, in filter_term
here is written:
For externally managed users, the search term needs to completely match the in order to find the user, and it will only return one user at a time.
In summary, we are currently only able to fetch one external user at a time by name or login.
This issue has been automatically closed due to maximum period of being stale. Thank you for your contribution to Box Python SDK and feel free to open another PR/issue at any time.