Hi Smruti, the method getSchemes(); returns the list of the permission schemes. Check the following link.
Or you can also use another method to get the users from any specific permission scheme:
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG