Remove-AzureADOAuth2PermissionGrant
oAuth2PermissionGrant를 제거합니다.
Syntax
Remove-AzureADOAuth2PermissionGrant
-ObjectId <String>
[-InformationAction <ActionPreference>]
[-InformationVariable <String>]
[<CommonParameters>]
Description
Remove-AzureADOAuth2PermissionGrant cmdlet은 Azure AD(Active Directory)에서 oAuth2PermissionGrant 개체를 제거합니다.
예제
예제 1: OAuth2 권한 부여 제거
PS C:\> $SharePointSP = Get-AzureADServicePrincipal | Where-Object {$_.DisplayName -eq "Microsoft.SharePoint"}
PS C:\> $SharePointOA2AllSitesRead = Get-AzureADOAuth2PermissionGrant | Where-Object {$_.ResourceId -eq $SharePointSP.ObjectId} | Where-Object {$_.Scope -eq "AllSites.Read"}
PS C:\> Remove-AzureADOAuth2PermissionGrant -ObjectId $SharePointOA2AllSitesRead.ObjectId
첫 번째 명령은 Get-AzureADServicePrincipal(./Get-AzureADServicePrincipal.md) cmdlet을 사용하여 지정된 표시 이름과 일치하는 서비스 주체를 가져옵니다. 이 명령은 결과를 $SharePointSP 변수에 저장합니다.
두 번째 명령은 Get-AzureADOAuth2PermissionGrant(./Get-AzureADOAuth2PermissionGrant.md) cmdlet을 사용하여 특정 권한 부여를 가져옵니다. 이 명령은 결과를 $SharePointOA 2AllSitesRead 변수에 저장합니다.
마지막 명령은 $SharePointOA 2AllSitesRead에서 권한 부여를 제거합니다.
매개 변수
-InformationAction
이 cmdlet이 정보 이벤트에 응답하는 방법을 지정합니다. 이 매개 변수에 허용되는 값은 다음과 같습니다.
- 계속
- 무시
- 문의
- SilentlyContinue
- 중지
- 일시 중지됨
Type: | ActionPreference |
Aliases: | infa |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InformationVariable
정보 변수를 지정합니다.
Type: | String |
Aliases: | iv |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ObjectId
Azure AD oAuth2PermissionGrant 개체의 ID를 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기