[BUG] GET MEMBERS request doesnt return a member group in case member is a group [GONRG-3535]
1.User creates a new group:
curl --location --request POST 'https://preship-asm.osdu-gcp.go3-nrg.projects.epam.com/api/entitlements/v2/groups' \
--header 'Content-Type: application/json' \
--header 'data-partition-id: odesprod' \
--header 'Authorization: Bearer **HIDDEN****' \
--data-raw '{
"name" :"users.intinfotech",
"description" : "users.intinfotech group"
}'
- User adds this group as a member to another group:
curl --location --request POST 'https://preship-asm.osdu-gcp.go3-nrg.projects.epam.com/api/entitlements/v2/groups/users.datalake.ops@odesprod.osdu-gcp.go3-nrg.projects.epam.com/members' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer **HIDDEN****' \
--header 'data-partition-id: odesprod' \
--data-raw '{
"email": "users.intinfotech@odesprod.osdu-gcp.go3-nrg.projects.epam.com",
"role": "MEMBER"
}
- User tries to get groups that this new created group belongs to:
curl --location --request GET 'https://preship-asm.osdu-gcp.go3-nrg.projects.epam.com/api/entitlements/v2/members/users.intinfotech@odesprod.osdu-gcp.go3-nrg.projects.epam.com/groups?type=none' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer **HIDDEN****' \
--header 'data-partition-id: odesprod' \
--data-raw ''
Expected result: User gets a list with a group to which this new created group was added.
Actual result: User gets an empty list.
{
"desId": "users.intinfotech@odesprod.osdu-gcp.go3-nrg.projects.epam.com",
"memberEmail": "users.intinfotech@odesprod.osdu-gcp.go3-nrg.projects.epam.com",
"groups": []
}
Edited by Kateryna Kurach (EPAM)