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:
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
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot