---
title: "Discussion on \"How to connect to the Microsoft Graph API using saved user credentials\" | Hashnode"
description: "Discussion on \"How to connect to the Microsoft Graph API using saved user credentials\". The official command Connect-MgGraph doesn't support authentication using saved credentials. But there is a solution 👍\n\nPreview v.2 version of the Az.Accounts module supports passing saved credentials in `Connect-MgGraph` by default.\n\nYou can authen..."
url: "https://hashnode.com/posts/how-to-connect-to-the-microsoft-graph-api-using-saved-user-credentials/63d1077d247a1532d4c27901"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to connect to the Microsoft Graph API using saved user credentials](https://doitpshway.com/how-to-connect-to-the-microsoft-graph-api-using-saved-user-credentials?utm_source=hashnode&utm_medium=feed)

The official command Connect-MgGraph doesn't support authentication using saved credentials. But there is a solution 👍 Preview v.2 version of the Az.Accounts module supports passing saved credentials in \`Connect-MgGraph\` by default. You can authen...

Jan 25, 2023 · 2 min read · doitpshway.com  
Updated Feb 4, 2023  
Read the article

-   [#powershell](https://hashnode.com/tag/powershell)
-   [#azure](https://hashnode.com/tag/azure)
-   [#graph](https://hashnode.com/tag/graph)
-   [#apis](https://hashnode.com/tag/apis)

## Written by

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

@AndrewZtrhgf · Czech Republic

  
[View profile](https://hashnode.com/@AndrewZtrhgf)

System Administrator that loves PowerShell

I work as System Administrator for more than 15 years now and I love to make my life easier by automating work &amp; personal stuff via PowerShell (even silly things like food recipes list generation).

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
