【问题标题】:How to list users who are counted towards the Crowd License using Rest API如何使用 Rest API 列出计入 Crowd License 的用户
【发布时间】:2019-03-05 13:02:30
【问题描述】:

要求:我需要得出不计入 Crowd 许可的用户数。

人群中的应用结构:

目前我们在人群中定义了 2 个应用程序,即 App1 和 App2。

我们还创建了 2 个目录,dir1 和 dir2。

两个目录都以相同的顺序映射到两个应用程序。

现在我创建了两个组“grp1”和“grp2”,分别在每个目录中,并在每个组中添加了一些用户。

现在在“app1”的“谁可以进行身份​​验证”部分,我已经在

下映射了“grp1”

“dir1”和“dir2”下,“grp2”已被映射。

“app2”也是如此,在“app2”的“谁可以进行身份​​验证”部分中,我已在“dir1”下映射了 grp1,在“dir2”下,已映射了“grp2”。

现在我需要使用其余 API 从上述设置中获取计入许可证的用户数。

任何人都可以列出人群中可用的任何 Rest 端点来实现此要求,或者甚至可以指出使用现有人群 Rest Api 的方法。

任何帮助将不胜感激。

【问题讨论】:

    标签: atlassian-crowd


    【解决方案1】:

    考虑到有多少用户计入您的 Crowd 许可证的逻辑应该是 - grp1 和 grp2 中不同用户的总和(通过在目录中映射为用户名的字段),您可能需要的 REST 端点是:

    /rest/usermanagement/1/group/child-group/direct?groupname=grp1 /rest/usermanagement/1/group/child-group/direct?groupname=grp2

    如果启用/使用组嵌套,那么您还需要:

    /rest/usermanagement/1/group/child-group/nested?groupname=grp1 /rest/usermanagement/1/group/child-group/nested?groupname=grp2

    从两者中获取用户,合并和重复数据删除。

    参考: - https://www.atlassian.com/licensing/crowd#serverlicenses-5 - https://docs.atlassian.com/atlassian-crowd/3.3.0/REST/#usermanagement/1/group

    CCM

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-12-25
      • 1970-01-01
      • 1970-01-01
      • 2014-07-17
      • 2021-12-09
      • 2018-07-01
      • 2017-04-15
      相关资源
      最近更新 更多