# Listing groups assigned to application returns empty profile

**URL:** <https://devforum.okta.com/t/listing-groups-assigned-to-application-returns-empty-profile/5678>\
**Category:** Questions\
**Created:** [July 16, 2019, 12:42pm UTC](https://devforum.okta.com/t/listing-groups-assigned-to-application-returns-empty-profile/5678 "2019-07-16T12:42:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruby](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@ruby](https://devforum.okta.com/u/ruby)\
**Post date:** [July 16, 2019, 12:42pm UTC](https://devforum.okta.com/t/listing-groups-assigned-to-application-returns-empty-profile/5678/1 "2019-07-16T12:42:17Z")

</div>

When I make the following request: /api/v1/apps/{applicationId}/groups the response always involves an empty profile resource:

![image](https://global.discourse-cdn.com/oktadev/original/2X/6/65e13c85785edf7a70b30ecf107d59f95258cdef.png)

This also happens when I test the request in my browser (e.g. [test.oktapreview.com/api/v1/apps/{applicationId}/groups](http://test.oktapreview.com/api/v1/apps/%7BapplicationId%7D/groups)). Does anyone have an idea what causes this and/or how this could be fixed? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [July 22, 2019, 1:40am UTC](https://devforum.okta.com/t/listing-groups-assigned-to-application-returns-empty-profile/5678/2 "2019-07-22T01:40:03Z")

</div>

Hi @ruby

The `profile` section represents custom attributes that have been declared in the app under Admin \>\> Users/Directory \>\> Profile Editor \>\> your OIDC app \>\> Profile and then mapped to the group under Assignments tab.

Here is an example of a response that contains a custom attribute

```auto
[{
    "id": "00g410dxkiBEKvwVc2p7",
    "lastUpdated": "2019-05-22T13:52:49.000Z",
    "priority": 0,
    "profile": {
        "test_token": null
    },
    "_links": {
        "app": {
            "href": "https://dragos.okta.com/api/v1/apps/0oa2fatx70JGiU2TA2p7"
        },
        "self": {
            "href": "https://dragos.okta.com/api/v1/apps/0oa2fatx70JGiU2TA2p7/groups/00g410dxkiBEKvwVc2p7"
        },
        "group": {
            "href": "https://dragos.okta.com/api/v1/groups/00g410dxkiBEKvwVc2p7"
        }
    }
}]

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 17, 2024, 11:48pm UTC](https://devforum.okta.com/t/listing-groups-assigned-to-application-returns-empty-profile/5678/3 "2024-01-17T23:48:40Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
