Can't see roles from inherited group using the API

When I created a group and added a parent group with two roles - I inherited roles but when I retrieve my child group or even users that are assigned to the child group I can't see roles that I inherited from the parent group.

TeamCity version: 2023.05 (build 129203)

Is this a bug or just an issue?
Endpoints I used:
http://localhost:8111/app/rest/userGroups/key:MFA
http://localhost:8111/app/rest/users/id:11

{

"key": "MFA",

"name": "MFA",

"href": "/app/rest/userGroups/key:MFA",

"description": "Users that need to use MFA",

"parent-groups": {

"count": 1,

"group": [

{

"key": "parent",

"name": "parent",

"href": "/app/rest/userGroups/key:parent",

"description": "dsad"

}

]

},

"child-groups": {

"count": 0,

"group": []

},

"users": {

"count": 1,

"user": [

{

"username": "for inherited user",

"name": "man",

"id": 11,

"href": "/app/rest/users/id:11"

}

]

},

"roles": {

"role": []

},

"properties": {

"property": [],

"count": 0,

"href": "/app/rest/userGroups/key:MFA/properties"

}

}

0
1 comment
Hi! This is not a bug but rather a lack of implementation. I filed a feature request to implement this: https://youtrack.jetbrains.com/issue/TW-82724. Feel free to upvote.
In the meantime, as a workaround, you will have to get the roles from the groups that the user/group belongs to.
0

Please sign in to leave a comment.