Not able to create permissions in spring boot app

I am new to Jira. I wanted to create a rest Api in Spring boot Application to create permissions or get permissions from Jira for Project and Issue. But not able to success. Can anyone please help on the same to write some codes.