IAM Labs
← All guides

#PowerShell

6 guides tagged PowerShell.

Active Directory Tiering with PowerShell

Build a tiered admin model and lock down privileged accounts.

🔒 MembersIntermediate45 min
#Active Directory#Tiering#PowerShell

Leave request with OpenID Connect, OAuth and on-behalf-of

Requirement, design and implementation of a modern leave portal: one sign-in, three tokens, and an API that reads Microsoft Graph as the employee.

FreeAdvanced30 min read + 20 min lab
#OAuth#OpenID Connect#On-behalf-of#Entra ID#Microsoft Graph#PowerShell

Resource owner password credentials (ROPC): why it is retired, and what MFA does to it

Why the password grant is retired, what happens when it meets enforced MFA, how to find it in your tenant, and what to replace it with.

FreeIntermediate20 min read + 10 min lab
#OAuth#ROPC#Entra ID#MFA#Security#PowerShell

The implicit flow: why it is retired and how to find it in your tenant

See where the implicit flow leaks tokens, find every app that still allows it, and migrate each one to authorization code with PKCE.

FreeIntermediate20 min read + 15 min lab
#OAuth#Implicit flow#Entra ID#Security#MSAL#PowerShell

Client credentials flow: when an app works on its own

How a background job gets its own app-only token with a client secret, using a Contoso directory hygiene report.

FreeIntermediate20 min read + 15 min lab
#OAuth#Client credentials#Entra ID#Microsoft Graph#PowerShell

Device code flow: signing in when the device has no browser

How a command-line tool on a browserless jump server signs a person in from their phone, and how to block device code phishing.

FreeIntermediate20 min read + 10 min lab
#OAuth#Device code#Entra ID#Conditional Access#PowerShell

Other tags

#Entra ID 8#OAuth 8#Active Directory 3#Microsoft Graph 3#Security 3#Tiering 3#Concepts 2#Client credentials 1#Conditional Access 1#Device code 1#Getting started 1#Implicit flow 1#MFA 1#MSAL 1#OIDC 1#On-behalf-of 1#OpenID Connect 1#PKCE 1#ROPC 1#SAML 1#SSO 1