Skip to content

a365 setup all fails with "Admin consent required" despite following permission documentation #403

@breg-dev

Description

@breg-dev

Description

When executing the a365 setup all --agent-name <name> command, the process consistently fails during the "Creating blueprint application" step. The CLI throws an error stating that admin consent has not been granted.

Important Context:
I have strictly followed all the instructions outlined in the official documentation, specifically the section regarding delegated permissions: Update delegated permissions. Despite configuring everything exactly as described, the command still fails and requests Global Administrator consent.

Expected behavior

The command should successfully create the agent blueprint and application using the delegated permissions configured, as suggested by the documentation, without requiring additional Global Administrator intervention.

SDK Version

v1.1.171+11c378141d

Language/Runtime

Node 24

OS

macOS 26

How to Reproduce

  • Ensure delegated permissions are set up as per the documentation.

  • Run the following command in the terminal: a365 setup all --agent-name <name>

  • Observe the failure during the blueprint creation phase.

Output

Creating agent blueprint...
    Verifying consent for agent blueprint operations...
    Successfully ensured delegated application consent
    Creating blueprint application...
        Sign in to Microsoft Graph to continue...
        Authenticating to Microsoft Graph...
        Admin consent has not been granted for this application.
        You are running as a non-admin user and cannot grant admin consent.
        Share this URL with a Global Administrator to grant consent:
          https://login.microsoftonline.com/[REDACTED_TENANT_ID]/adminconsent?client_id=[REDACTED_CLIENT_ID]&redirect_uri=https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fnativeclient
        After consent is granted, re-run the command.
        ERROR: Browser authentication failed due to connectivity issue: Admin consent required. Share this URL with a Global Administrator: https://login.microsoftonline.com/[REDACTED_TENANT_ID]/adminconsent?client_id=[REDACTED_CLIENT_ID]&redirect_uri=https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fnativeclient
        ERROR: Failed to authenticate to Microsoft Graph: [GRAPH_API_FAILED] Microsoft Graph API operation failed: Browser authentication
  * Authentication failed due to connectivity issue: Admin consent required. Share this URL with a Global Administrator: https://login.microsoftonline.com/[REDACTED_TENANT_ID]/adminconsent?client_id=[REDACTED_CLIENT_ID]&redirect_uri=https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fnativeclient. Please ensure you have network connectivity.

        ERROR: TROUBLESHOOTING:
        ERROR: 1. Ensure you are a Global Administrator or have AgentIdentityBlueprint.ReadWrite.All permission
        ERROR: 2. The account must have already consented to these permissions

ERROR: Microsoft Graph API operation failed: Create Agent Blueprint
Blueprint creation failed. This typically indicates missing permissions or insufficient privileges.
Ensure you have the required Graph API permissions
You need AgentIdentityBlueprint.ReadWrite.All permission for agent blueprint creation
Contact your tenant administrator to grant permissions
See documentation: https://learn.microsoft.com/microsoft-agent-365/developer/custom-client-app-registration

Screenshots

No response

Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions