Hi,
How can i get full user list from one of the groups in confluence? I am trying to use a script and do it via scriptrunner console, but i am getting an error in the script. Can you help me with the script?
Script i am using:
That's because Confluence doesn't have a class called ComponentAccessor.
You can't just translate Jira scriptrunner code for Confluence, they are very different at the java API level.
Here is how you can get all the users in a group in confluence:
import com.atlassian.sal.api.component.ComponentLocator
import com.atlassian.user.GroupManager
def groupManager =ComponentLocator.getComponent(GroupManager)
def group = groupManager.getGroup('confluence-users')
groupManager.getMemberNames(group).asList()
Hi @Spruha Shah
If you have access to database, you can run a simple select query & get the data. You may want to read the article.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
we dont have access to the database. I am trying to do this via scriptrunner script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Spruha Shah
Scriptrunner should also have a database connector which should allow you run sql query, not sure if its available for server but take a look. It would be available for jira admin users next to behaviour somewhere.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.