Hi,
In User Directories we are positioning Microsoft Active Directory (Read Only, with Local Groups) above JIRA-Atlassian Crowd. We are loading users from Active Directory and groups from JIRA. As a result of user directories order change our scripts stopped working. According to Bitbucket GUI users are in old groups but according to ScritpRunner they are not (below code returns false).
import com.atlassian.sal.api.component.ComponentLocator
import com.atlassian.bitbucket.user.UserService
def userService = ComponentLocator.getComponent(UserService.class)
return userService.isUserInGroup("USER_1234", "IT-GROUP")
What is strange this simple code returns true when JIRA-Atlassian Crowd is above Microsoft Active Directory.
Is this ScriptRunner error or “isUserInGroup” is used incorrectly?
Bitbucket: v6.10.0
ScriptRunner: 5.7.0.1-p5
Regards
Piotr Palak