diff --git a/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerAuthorizationPlugin.java b/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerAuthorizationPlugin.java index 75692e987b8..f53c4235472 100644 --- a/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerAuthorizationPlugin.java +++ b/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerAuthorizationPlugin.java @@ -383,7 +383,8 @@ public Boolean onUserAcquired(User user) throws RuntimeException { @Override public Boolean onGroupAdded(Group group) throws RuntimeException { - return rangerClient.createGroup(VXGroup.builder().withName(group.name()).build()); + return rangerClient.createGroup( + VXGroup.builder().withName(group.name()).withDescription(group.name()).build()); } @Override diff --git a/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/reference/VXGroup.java b/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/reference/VXGroup.java index f409cdeb045..3a58f5c95a0 100644 --- a/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/reference/VXGroup.java +++ b/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/reference/VXGroup.java @@ -91,6 +91,11 @@ public Builder withName(String name) { return this; } + public Builder withDescription(String description) { + vxGroup.description = description; + return this; + } + public VXGroup build() { return vxGroup; }