Azure / Azure/azure-powershell

Get-AzADUser Does Not Return Password Policy

Open
#17,839 7 comments 0 reactions 1 assignee Claimed by @VeryEarly View on GitHub
AAD act-identity-squad bug customer-reported
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description

Get-AzADUser does not return anything for PasswordPolicy.

Get-AzureADUser works as expected and returns PasswordPolicies.

Get-AzureADUser -ObjectId username@tenant.onmicrosoft.com | Select-Object PasswordPolicies

### Issue script & Debug output

```PowerShell
Get-AzADUser -ObjectId username@tenant.onmicrosoft.com | Select-Object PasswordPolicy
```

### Environment data

```PowerShell
Name Value
---- -----
PSVersion 7.2.2
PSEdition Core
GitCommitId 7.2.2
OS Microsoft Windows 10.0.19044
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
```

### Module versions

```PowerShell
5.5.0
```

### Error output

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.