I try to get project keys by this api. But this response includes all projects.
I want to get project keys which I have permission.
How to get this value by jira api?
Actually, it returns the list of projects that the requester has permissions to see. You are probably an admin so it is returning all projects.
However, I am assuming that you are trying to list the user's permissions on each project. So, maybe you can combine this endpoint with "Find users with permission" endpoint.
So, in other words:
Or, if you are just looking for a user's application roles on each project, you can use any of the "Find users" endpoints and get "applicationRoles" attribute in the response.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.