明道企业授权开放接口文档

明道企业授权开放接口文档


根据第三方组织角色Id获取角色下成员列表

<p><strong>简要描述:</strong> </p> <ul> <li>根据第三方组织角色Id获取角色下成员列表</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>{Host}/v2/OrgRole/GetOrgRoleAccounts</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET </li> </ul> <p><strong>请求参数说明:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">corpOrgRoleId</td> <td style="text-align: left;">string</td> <td>第三方组织角色id</td> </tr> </tbody> </table> <hr /> <p><strong>返回数据说明</strong></p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">code</td> <td style="text-align: left;">int</td> <td>错误码</td> </tr> <tr> <td style="text-align: left;">message</td> <td style="text-align: left;">string</td> <td>错误描述,成功为空</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">UserRelation[]</td> <td>用户id集合</td> </tr> </tbody> </table> <p>UserRelation 实体:</p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">corpUserId</td> <td style="text-align: left;">string</td> <td>第三方用户Id,如果为空代表没有第三方用户id映射</td> </tr> <tr> <td style="text-align: left;">accountId</td> <td style="text-align: left;">string</td> <td>明道云用户Id</td> </tr> <tr> <td style="text-align: left;">projectId</td> <td style="text-align: left;">string</td> <td>明道云组织编号</td> </tr> </tbody> </table> <p><strong>成功</strong></p> <pre><code>{ &amp;quot;data&amp;quot;: [ { &amp;quot;corpUserId&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;projectId&amp;quot;: &amp;quot;xxxx-xxxx-xxxx-xxxx&amp;quot;, &amp;quot;accountId&amp;quot;: &amp;quot;xxxx-xxxx-xxxx-xxxx&amp;quot; } ], &amp;quot;code&amp;quot;: 1, &amp;quot;message&amp;quot;: &amp;quot;&amp;quot; }</code></pre> <p><strong>失败</strong></p> <pre><code>{ &amp;quot;code&amp;quot;: 10001, &amp;quot;message&amp;quot;: &amp;quot;错误描述&amp;quot; }</code></pre>

页面列表

ITEM_HTML