Hello,
I know that it's possible to get the deactivated users in Confluence with userAccessor.isDeactivated(user).
But is there a way to get also the users which are unsynced from directory via Scriptrunner?
Best regards,
Michael
This is possibly using Atlassian's PersonService API. Here's an example script for the Script Console that gets all the unsynced users and lists their display names:
import com.atlassian.confluence.api.model.pagination.SimplePageRequest
import com.atlassian.confluence.api.service.people.PersonService
import com.onresolve.scriptrunner.runner.ScriptRunnerImpl
def personService = ScriptRunnerImpl.scriptRunner.getService(PersonService)
personService.search().forUnsyncedUsers('').fetchMany(new SimplePageRequest(0, 100)).results.collect { person ->
person.displayName
}
AI-powered meeting notes keep work moving even if you’re out of the office. Enjoy your well-deserved time off and return refreshed, confident you’ll catch up in no time.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.