Hi all,
public Response createGroup(String groupName) {
try {
GroupsResource groupsResource = keycloak.realm("quarkus").groups();
GroupRepresentation group = new GroupRepresentation();
group.setName("test");
Response test = groupsResource.add(group);
// List<GroupRepresentation> listGroup = groupsResource.groups();
return test;
} catch (Exception e) {
e.printStackTrace();
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity("Failed to add group")
.build();
}
}
I tried to add group using keycloak admin api as showing in above code.
Unfortunately, i got an http 400 error as below using Postman
I already try to find solution on google but nothing found. Hope anyone can help.
Thanks
