how can i import usermanager interface

Ugur GUNGOR August 13, 2014

on this link there is a interface https://docs.atlassian.com/sal-api/2.6.0/sal-api/apidocs/com/atlassian/sal/api/user/UserManager.html

how can i import that to jython validator. and how can i use getRemoteUsername and isuseringroup functions. is there any example

1 answer

1 accepted

1 vote
Answer accepted
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 14, 2014

You can access managers usign the ComponentAccessor.

https://docs.atlassian.com/jira/latest/com/atlassian/jira/component/ComponentAccessor.html

GroupManager (https://docs.atlassian.com/jira/latest/com/atlassian/jira/security/groups/GroupManager.html) has userInGroup. UserUtil and UserManager is also accessible via ComponentAcessor.

Ugur GUNGOR August 14, 2014

Thank you so much!

Suggest an answer

Log in or Sign up to answer