Apr 17 2024 06:07 AM
Writing some code in Python to perform some actions in KeyVault.
Authenticating with InteractiveBrowserCredential and I can perform actions in the keyvault. That is all good.
However; in order to prevent certain users have access to features that won't work for them; how can I determine upfront (i.e. just after logon) whether a user that has authenticated actually has the get/list/create permissions on a specific keyvault from within Python.
Thanks.
Nick.
Apr 17 2024 11:13 PM
Authenticate the user using InteractiveBrowserCredential. After authentication, retrieve the access policies for the key vault. Check if the user has the required permissions (e.g., get, list, or create) based on their access policy.
Apr 18 2024 08:31 AM
Apr 18 2024 06:05 PM