client.jobs.list_shares
A method of the Jobs endpoint.
- list_shares(id: int) → ListResponse
List users and groups permissioned on this object
API URL:
GET /jobs/{id}/sharesimport civis client = civis.APIClient() response = client.jobs.list_shares(...)
- Parameters:
- idint
The ID of the resource that is shared.
- Returns:
civis.ListResponse- readers
civis.Response - usersList[
civis.Response] id : int
name : str
- usersList[
- groupsList[
civis.Response] id : int
name : str
- groupsList[
- readers
- writers
civis.Response - usersList[
civis.Response] id : int
name : str
- usersList[
- groupsList[
civis.Response] id : int
name : str
- groupsList[
- writers
- owners
civis.Response - usersList[
civis.Response] id : int
name : str
- usersList[
- groupsList[
civis.Response] id : int
name : str
- groupsList[
- owners
- total_user_sharesint
For owners, the number of total users shared. For writers and readers, the number of visible users shared.
- total_group_sharesint
For owners, the number of total groups shared. For writers and readers, the number of visible groups shared.