I currently use this Groovy script to get the user of a group. Is there any way to simplify this and query a group using the group name directly instead of the full path to the group?
long groupId = identityAPI.getGroupByPath("/amce/hr/mygroup").id SearchOptionsBuilder builder = new SearchOptionsBuilder(0, 1) builder.filter(UserSearchDescriptor.GROUP_ID, groupId) long userId = identityAPI.searchUsers(builder.done())result.get(0).id