Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to check whether the logged in user is in specific group to access the gadget?

NeeluV August 25, 2014

I want to restrict the user who logs in to access the gadget.

I want to find out whether the user is specific group like jira-developers.

3 answers

1 accepted

0 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
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 25, 2014

I have some sample code in this post. Note that you can use AJS.params.loggedInUser instead of getCurrentUserName.

0 votes
NeeluV August 26, 2014

if the loged in user is not in the group how to disable the gadget OR hide it from the gadget directory

0 votes
NeeluV August 26, 2014

Thanks Jobin. it is helpful.

Suggest an answer

Log in or Sign up to answer