box-python-sdk icon indicating copy to clipboard operation
box-python-sdk copied to clipboard

Can't get any external user

Open c-rei opened this issue 3 years ago • 1 comments

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.

c-rei avatar Nov 18 '21 01:11 c-rei

Hi @c-rei,

Thanks for submitting this Issue! We will take a look and get back to you ASAP!

@arjankowski

arjankowski avatar Nov 18 '21 12:11 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.

stale[bot] avatar Dec 19 '22 20:12 stale[bot]

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.

arjankowski avatar Dec 20 '22 09:12 arjankowski

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.

stale[bot] avatar Dec 27 '22 20:12 stale[bot]