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.SimplePageRequestimport com.atlassian.confluence.api.service.people.PersonServiceimport com.onresolve.scriptrunner.runner.ScriptRunnerImpldef personService = ScriptRunnerImpl.scriptRunner.getService(PersonService)personService.search().forUnsyncedUsers('').fetchMany(new SimplePageRequest(0, 100)).results.collect { person -> person.displayName}
It looks like you're new here. Sign in or register to get started.