ckanaction

group_list_authz

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

POST
group_list_authz
Authorization<token>

CKAN API token

In: header

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)

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