Updating of a group via Rest API does not work

Description

According to the documentation, a POST made against /v1/security/groups should add OR update the group specified in the parameter. This however only can create the group, the operation fails if the group exists already with A group with the name "foobar" already exists

Based on my understanding, this is due to the fact that com.thinkbiganalytics.security.service.user.UserMetadataService#updateGroup calls com.thinkbiganalytics.metadata.api.user.UserProvider#createGroup instead of com.thinkbiganalytics.metadata.api.user.UserProvider#ensureGroup

https://github.com/Teradata/kylo/blob/master/services/security-service/security-controller/src/main/java/com/thinkbiganalytics/security/service/user/UserMetadataService.java#L148

Environment

None

Assignee

Unassigned

Reporter

Peter Horvath

Labels

None

Reviewer

None

Story point estimate

None

Affects versions

Priority

Medium
Configure