Thank you for posting your query on Microsoft Q&A. From above description it seems like you are trying to access KeyVault via Python code and getting permissions issue.
Please do correct me if this is not the case by responding in the comments section.
Kindly try running the following command from Azure Powershell to get the required permissions:
Set-AzKeyVaultAccessPolicy -VaultName "<your-unique-keyvault-name>" -UserPrincipalName "******@domain.com" -PermissionsToSecrets delete,get,list,set
Please do let me know if you have any issues in following this.
Thanks,
Akshay Kaushik
Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.