I have already got the users and groups list with space permissions but I would like to get the permission which they have also like given below:
@Field final Logger logger = Logger.getLogger("in.aditya.sr4j")
def spaceManager = ComponentLocator.getComponent(SpaceManager)
def spacePermissionManager = ComponentLocator.getComponent(SpacePermissionManager)
def groupManager = ComponentLocator.getComponent(GroupManager)
def userAccessor = ComponentLocator.getComponent(UserAccessor)
def space = spaceManager.getSpace('testspace')
def usersWithSpacePermissions = spacePermissionManager.getUsersWithPermissions(space).name.toList().unique()
def groupsWithSpacePermissions = spacePermissionManager.getGroupsWithPermissions(space).toList().unique()
Hello Community! Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events