# Kong admin API to get list of ACLs based on group name

**URL:** <https://discuss.konghq.com/t/kong-admin-api-to-get-list-of-acls-based-on-group-name/9400>\
**Category:** Questions\
**Created:** [November 23, 2021, 3:13pm UTC](https://discuss.konghq.com/t/kong-admin-api-to-get-list-of-acls-based-on-group-name/9400 "2021-11-23T15:13:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anup.rai](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anup.rai](https://discuss.konghq.com/u/anup.rai)\
**Post date:** [November 23, 2021, 3:13pm UTC](https://discuss.konghq.com/t/kong-admin-api-to-get-list-of-acls-based-on-group-name/9400/1 "2021-11-23T15:13:48Z")

</div>

Is there a way to get the list of consumer for a particular ACL group.  
For eg- If I have below ACLs created in Kong -

```auto
curl -X GET http://{HOST}:8001/acls

{
    "total": 3,
    "data": [
        {
            "group": "foo-group",
            "created_at": 1511391159000,
            "id": "724d1be7-c39e-443d-bf36-41db17452c75",
            "consumer": { "id": "89a41fef-3b40-4bb0-b5af-33da57a7ffcf" }
        },
        {
            "group": "bar-group",
            "created_at": 1511391162000,
            "id": "0905f68e-fee3-4ecb-965c-fcf6912bf29e",
            "consumer": { "id": "c0d92ba9-8306-482a-b60d-0cfdd2f0e880" }
        },
        {
            "group": "bar-group",
            "created_at": 1509814006000,
            "id": "ff883d4b-aee7-45a8-a17b-8c074ba173bd",
            "consumer": { "id": "c0d92ba9-8306-482a-b60d-0cfdd2f0e881" }
        }
    ]
}

```

Is there any admin API to list ACLs based on group name?  
For eg - to list the ACLs only for `"group": "bar-group"` as below -

```auto
curl -X GET http://{HOST}:8001/acls?group=bar-group

{
    "total": 2,
    "data": [
        {
            "group": "bar-group",
            "created_at": 1511391162000,
            "id": "0905f68e-fee3-4ecb-965c-fcf6912bf29e",
            "consumer": { "id": "c0d92ba9-8306-482a-b60d-0cfdd2f0e880" }
        },
        {
            "group": "bar-group",
            "created_at": 1509814006000,
            "id": "ff883d4b-aee7-45a8-a17b-8c074ba173bd",
            "consumer": { "id": "c0d92ba9-8306-482a-b60d-0cfdd2f0e881" }
        }
    ]
}

```
