Revoke-AzureADUserAllRefreshToken
使颁发给用户的应用程序的刷新令牌失效。
语法
Default (默认值)
Revoke-AzureADUserAllRefreshToken
-ObjectId <String>
[<CommonParameters>]
说明
Revoke-AzureADUserAllRefreshToken cmdlet 会使向用户的应用程序颁发的刷新令牌失效。 该 cmdlet 还会使颁发给用户浏览器中会话 Cookie 的令牌失效。 cmdlet 通过将 refreshTokensValidFromDateTime 用户属性重置为当前日期和时间来运行。
示例
示例 1:撤销用户的刷新令牌
PS C:\> Revoke-AzureADUserAllRefreshToken -ObjectId "aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb"
此命令撤销指定用户的令牌。
参数
-ObjectId
指定用户的唯一 ID。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。