Skip to content

Get-MgUser -UseDefaultBrowser #3529

Description

Is your feature request related to a problem? Please describe the problem.

Since the latest versions, Connect-MgGraph uses Web Account Manager (WAM), which is very convenient for the 0.001‰ of administrators who use their Windows account to administer Microsoft clouds. However, this poses a problem for the 99.999‰ of good administrators who do not use their user accounts to administer Microsoft cloud services and who store them in a secure password manager. WAN is not compatible with password managers. Would it be possible to add "-UseDefaultBrowser" to the command?

P.S. The statistics provided are somewhat approximate.

Describe the solution you'd like.

Add "-UseDefaultBrowser" to the command and user web browser for login.

Additional context?

No response

Activity

  1. ramsessanchez commented on Feb 23, 2026

    @ramsessanchez
    Contributor

    Hi NotBenjamin (@CallMeByMyName), we no longer support this scenario as WAM is now necessary on Windows devices to prevent security vulnerabilities. In order to disable WAM you must use the Set-MgGraphOption -DisableLoginByWAM $true and use a custom ClientId.

  2. gavinbarron commented on Feb 24, 2026

    @gavinbarron
    Member

    When the os based broker components provide the required support run as other user scenarios will work as they used to, until then we have provided a clear workaround.

    1. create your own app registration
    2. Disable WAM login Set-MgGraphOption -DisableLoginByWAM $true
    3. Sign in using your custom app registration Connect-MgGraph -ClientId <your-app-id> -TenantId <your-tenant-id>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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