mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
Merge pull request #196 from alphagov/get-users-for-service
Get users for service
This commit is contained in:
@@ -81,6 +81,11 @@ class UserApiClient(BaseAPIClient):
|
||||
return False, 'Code not found'
|
||||
raise e
|
||||
|
||||
def get_users_for_service(self, service_id):
|
||||
endpoint = '/service/{}/users'.format(service_id)
|
||||
resp = self.get(endpoint)
|
||||
return resp['data']
|
||||
|
||||
|
||||
class User(UserMixin):
|
||||
def __init__(self, fields, max_failed_login_count=3):
|
||||
|
||||
Reference in New Issue
Block a user