Hi Community,
I´m implementing an automatic cleanup for user groups. This worked pretty fine for Jira but unfortunately Confluence seems really challenging.
Does anyone know why there are so many confusing (at least from my perspective) classes, why nearly same classes work so differently or have different/little methods? furhtermore the returned types are kinda frustrating.
so in Jira I got the following lines working like a charm:
def inactiveUsersInGroup = groupManager.getUsersInGroup(userGroup)?.findAll { it.active == false }
Groups.getByName(userGroup).remove(user)
For Confluence:
- There is no method "getUsersInGroup"
- furthermore there is no direct property "active" within the user
- Furthermore what are the differences between "ConfluenceUser" and "User" ? Is there any possibility to get list of Users I can then access and filter?
Any help much appreciated.
Best
Stefan