ckanaction

group_list_authz

POST
group_list_authz

Return the list of groups that the user is authorized to edit.

Authorization

apiTokenHeader
headerAuthorization<token>

CKAN API token

Request Body

application/json
  1. body
available_only?boolean

remove the existing groups in the package (default: False)

am_member?boolean

if True return only the groups the logged-in user is a member of, otherwise return all groups that the user is authorized to edit (for example, sysadmin users are authorized to edit all groups) (default: False)

Example Request
curl -X POST 'http://localhost:5000/api/3/action/group_list_authz' \  -H 'Content-Type: application/json' \  -d '{}'