How do you turn a principal_id into a username using the Azure Python SDK
问题 Using the Azure Python SDK I'm trying to build a script that will audit our various user role authorizations. I'm able to pull a list of role assignments using the following: authorizationClient = AuthorizationManagementClient(credential, subscription_id) roles = authorizationClient.role_assignments.list() This works, and I get a list of dicts that seems to have every piece of info I need except the principal_name. Example response: {'additional_properties': {}, 'id': '/providers/Microsoft