Skip to content

Instantly share code, notes, and snippets.

@AlanCoding
Last active April 2, 2024 15:54
Show Gist options
  • Save AlanCoding/ac3c8cc27bfacfe6f7bc6203af4fb268 to your computer and use it in GitHub Desktop.
Save AlanCoding/ac3c8cc27bfacfe6f7bc6203af4fb268 to your computer and use it in GitHub Desktop.
Team access display
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 14,
"type": "user",
"url": "/api/v2/users/14/",
"related": {
"teams": "/api/v2/users/14/teams/",
"organizations": "/api/v2/users/14/organizations/",
"admin_of_organizations": "/api/v2/users/14/admin_of_organizations/",
"projects": "/api/v2/users/14/projects/",
"credentials": "/api/v2/users/14/credentials/",
"roles": "/api/v2/users/14/roles/",
"activity_stream": "/api/v2/users/14/activity_stream/",
"access_list": "/api/v2/users/14/access_list/",
"tokens": "/api/v2/users/14/tokens/",
"authorized_tokens": "/api/v2/users/14/authorized_tokens/",
"personal_tokens": "/api/v2/users/14/personal_tokens/"
},
"summary_fields": {
"direct_access": [
{
"role": {
"id": 205,
"name": "Execute",
"description": "May run any executable resources in the organization",
"team_id": 1,
"team_name": "Team - FatBowl 2 jeff",
"team_organization_name": "Organization - YouLeather�",
"resource_name": "Full house!!! StopIllegal�",
"resource_type": "organization",
"related": {
"organization": "/api/v2/organizations/11/"
},
"user_capabilities": {
"unattach": true
}
},
"descendant_roles": [
"execute_role",
"read_role"
]
}
],
"indirect_access": []
},
"created": "2024-04-01T16:46:06.128046Z",
"modified": null,
"username": "User-TourClub48232667596645339268234971759644074535786987459773301225",
"first_name": "AccountNurse�",
"last_name": "CanPolicyꋕ",
"email": "BluePointStealAgentRegister784809947687226039448437518601987614814897509711411774437@example.com",
"is_superuser": false,
"is_system_auditor": false,
"password": "$encrypted$",
"ldap_dn": "",
"last_login": null,
"external_account": null
}
]
}
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 174,
"type": "user",
"url": "/api/v2/users/174/",
"related": {
"teams": "/api/v2/users/174/teams/",
"organizations": "/api/v2/users/174/organizations/",
"admin_of_organizations": "/api/v2/users/174/admin_of_organizations/",
"projects": "/api/v2/users/174/projects/",
"credentials": "/api/v2/users/174/credentials/",
"roles": "/api/v2/users/174/roles/",
"activity_stream": "/api/v2/users/174/activity_stream/",
"access_list": "/api/v2/users/174/access_list/",
"tokens": "/api/v2/users/174/tokens/",
"authorized_tokens": "/api/v2/users/174/authorized_tokens/",
"personal_tokens": "/api/v2/users/174/personal_tokens/"
},
"summary_fields": {
"resource": {
"ansible_id": "286fa8ed-4fe6-48bc-907f-25678cba9818",
"resource_type": "shared.user"
},
"direct_access": [
{
"role": {
"id": 747,
"name": "Job Template Admin",
"description": "Can manage all job templates of the organization",
"team_id": 41,
"team_name": "Team - AngleStar�",
"team_organization_name": "Organization - MedicineLady�",
"resource_name": "Full house!!! ReplyGreat䮽",
"resource_type": "organization",
"related": {
"organization": "/api/v2/organizations/42/"
},
"user_capabilities": {
"unattach": true
}
},
"descendant_roles": [
"admin_role",
"execute_role",
"read_role"
]
}
],
"indirect_access": []
},
"created": "2024-04-02T15:41:43.149390Z",
"modified": null,
"username": "User-KnifeCourage31956051159633958988922993784188594706335829727663256793",
"first_name": "DesignImage�",
"last_name": "LeatherMess�",
"email": "ScratchSignalYellowHitYoung39711691508144960935811406905147195888945987279518843385@example.com",
"is_superuser": false,
"is_system_auditor": false,
"password": "$encrypted$",
"ldap_dn": "",
"last_login": null,
"external_account": null
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment