API call - list users by status
AnsweredHi, There is an option to list users by status via API? ("Inactive" in my case)
*I'm using Python
Thanks! 🙂
-
So the request should be like this?Thanks!from boxsdk import JWTAuthimport requestsimport jsonfrom boxsdk import Clientconfig = JWTAuth.from_settings_file("<file_path>\\config.json")client = Client(config)users = client.users(user_type='managed')for user in users:if user.status == 'inactive':print('User Login: {1}'.format(user.login))
Please sign in to leave a comment.
Comments
2 comments