8.4.4.3. 查询权限


要查询与资源关联的权限,请发送 HTTP GET 请求,如下所示:

http://${host}:${port}/realms/${realm-name}/authz/protection/uma-policy?resource={resource_id}

要查询给定名称的权限,请发送 HTTP GET 请求,如下所示:

http://${host}:${port}/realms/${realm-name}/authz/protection/uma-policy?name=Any people manager

要查询与特定范围关联的权限,请发送 HTTP GET 请求,如下所示:

http://${host}:${port}/realms/${realm-name}/authz/protection/uma-policy?scope=read

要查询所有权限,请发送 HTTP GET 请求,如下所示:

http://${host}:${port}/realms/${realm-name}/authz/protection/uma-policy

当查询服务器以获取权限时,首先使用 参数,最大 结果来限制结果。

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部