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)

File: https://community.opengroup.org/osdu/platform/system/sdks/common-python-sdk/-/blob/master/osdu_api/clients/entitlements/entitlements_client.py?ref_type=heads

Edited Apr 01, 2025 by Eirik Haughom [Microsoft]
Assignee Loading
Time tracking Loading