Hi @Jose Barredo,
Based on your query, here is my understanding: You would like to custom policies to your application using Microsoft Graph API.
To configure custom policies to an application, you need to use claims mapping policy
. To configure claims mapping policy, you need to use the following document: Customize claims using Microsoft Graph Custom Claims Policy (preview). By using this document, you will have a policy that have custom claims which can be added to multiple applications (service principal's) as per your requirement.
Here is the document to create claims mapping policy: Create claimsMappingPolicy. Once you create the policy with required claims, you can use the above provided document to add this policy to the application. The required permissions are provided in the prerequisites of the document itself.
I hope this information is helpful. Please feel free to reach out if you have any further questions.
If the answer is helpful, please click "Accept Answer" and kindly "upvote it". If you have extra questions about this answer, please click "Comment".