Get-AzureADUser
사용자를 가져옵니다.
Syntax
Get-AzureADUser
[-All <Boolean>]
[-Top <Int32>]
[-Filter <String>]
[<CommonParameters>]
Get-AzureADUser
[-SearchString <String>]
[-All <Boolean>]
[<CommonParameters>]
Get-AzureADUser
-ObjectId <String>
[-All <Boolean>]
[<CommonParameters>]
Description
Get-AzureADUser cmdlet은 Microsoft Entra ID에서 사용자를 가져옵니다.
예제
예제 1: 상위 10명의 사용자 가져오기
PS C:\>Get-AzureADUser -Top 10
이 명령은 10명의 사용자를 가져옵니다.
예제 2: ID로 사용자 가져오기
PS C:\>Get-AzureADUser -ObjectId "testUpn@tenant.com"
이 명령은 지정된 사용자를 가져옵니다.
예제 3: 검색된 사용자 간 검색
PS C:\> Get-AzureADUser -SearchString "New"
ObjectId DisplayName UserPrincipalName UserType
-------- ----------- ----------------- --------
5e8b0f4d-2cd4-4e17-9467-b0f6a5c0c4d0 New user NewUser@contoso.onmicrosoft.com Member
2b450b8e-1db6-42cb-a545-1b05eb8a358b New user NewTestUser@contoso.onmicrosoft.com Member
이 cmdlet은 DisplayName 또는 UserPrincipalName의 첫 번째 문자와 SearchString 값과 일치하는 모든 사용자를 가져옵니다.
예제 4: userPrincipalName으로 사용자 가져오기
PS C:\>Get-AzureADUser -Filter "userPrincipalName eq 'jondoe@contoso.com'"
이 명령은 지정된 사용자를 가져옵니다.
예제 5: JobTitle로 사용자 가져오기
PS C:\>Get-AzureADUser -Filter "startswith(JobTitle,'Sales')"
이 명령은 작업 제목이 Sales로 시작하는 모든 사용자(예: Sales Manager 및 Sales Assistant)를 가져옵니다.
매개 변수
-All
true이면 모든 사용자를 반환합니다. false이면 Top 매개 변수로 지정된 개체 수를 반환합니다.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Filter
OData v3.0 필터 문을 지정합니다. 이 매개 변수는 반환되는 개체를 제어합니다. OData를 사용하여 쿼리하는 방법은 여기에서 확인할 수 있습니다. http://www.odata.org/documentation/odata-version-3-0/odata-version-3-0-core-protocol/#queryingcollections. 현재 모든 OData v3.0 함수 및 연산자가 지원되는 것은 아닙니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ObjectId
Microsoft Entra ID에서 사용자의 ID(UPN 또는 ObjectId)를 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SearchString
검색 문자열을 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Top
반환할 최대 레코드 수를 지정합니다.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
참고
Microsoft Graph PowerShell 로의 Get-AzureADUser 마이그레이션 가이드 를 참조하세요.
관련 링크
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기