Support Get All Groups in Entitlements
OSDU supports listing all groups on a data partition, could we please add this to the SDK?
Endpoint: /api/entitlements/v2/groups/all
| Parameter | Description |
|---|---|
| type | (Required) Type of the Group. Allowable Values = "NONE,DATA,USER,SERVICE" |
| limit | Maximum number of groups to retrieve |
I think this is the main change, but not sure if this covers everything:
def get_groups_all(self, limit: int, type: str, bearer_token=None):
params = {} # type: dict
params['type'] = type
params['limit'] = limit
return self.make_request(method=HttpMethod.GET, url='{}{}'.format(self.entitlements_url, '/groups/all'), params=params, bearer_token=bearer_token)
Edited by Eirik Haughom [Microsoft]