It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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

Thanks Jobin. it is helpful.

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Next-gen

Keyboard shortcuts have arrived for next-gen projects!

...ollected feedback from users around the lack of shortcuts, and we’re here to address that: In next-gen projects, I miss the keyboard shortcuts badly. This is particularly true on the Board, but also i...

146 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you