Skip to content

Extend aad app add with the ability to grant admin consent for API scopes #3114

@garrytrinder

Description

@garrytrinder

You can currently use the aad app add command to create Azure AD app registrations and define both delegate and application scoped permissions to be used, however, if you configure a scope that requires admin consent to be granted, you must manually log into the Azure Portal and consent manually before the permission can be used.

I propose that we add a new option to the command named --grantAdminConsent that when present, will automatically grant consent for the permissions passed in via the --apisDelegated and --apisApplication options, thus removing the manual consent step.

The below comment in the Azure CLI repo provides insight into how this is achieved using the Azure CLI for delegate permissions and REST API for application permissions.

Azure/azure-cli#12137 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions