首页 > 解决方案 > 使用 IBM 连接 Cloud API 添加社区所有者

问题描述

使用 Connections 社区的 API,我们可以按照以下 URL 中的说明添加成员: https ://www-10.lotus.com/ldd/appdevwiki.nsf/xpAPIViewer.xsp?lookupName=API+Reference#action=openDocument&res_title=Adding_a_member_programmatically&content= api内容

我尝试在社区中添加所有者而不是成员,但即使我为用户发布此信息,他也始终成为成员:

<entry xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:snx="http://www.ibm.com/xmlns/prod/sn">
    <contributor>
        <email>michel.nico@connelink.fr</email>
        <snx:userid xmlns:snx="http://www.ibm.com/xmlns/prod/sn">My user ID</snx:userid>
        <snx:userState xmlns:snx="http://www.ibm.com/xmlns/prod/sn">active</snx:userState>
        <snx:isExternal xmlns:snx="http://www.ibm.com/xmlns/prod/sn">false</snx:isExternal>
        <name>Michel NICO</name>
    </contributor>
    <snx:role xmlns:snx="http://www.ibm.com/xmlns/prod/sn" component="http://www.ibm.com/xmlns/prod/sn/communities">owner</snx:role>
    <category term="business-owner" scheme="http://www.ibm.com/xmlns/prod/sn/type"></category>
    <category term="person" scheme="http://www.ibm.com/xmlns/prod/sn/type"> </category>
    <snx:orgId xmlns:snx="http://www.ibm.com/xmlns/prod/sn">The ID of our cloud</snx:orgId>
</entry>

它总是让我成为会员,而不是所有者。我们如何在社区中创建具有所有者角色的用户?

标签: ibm-cloudibm-connectionsibm-sbt

解决方案


它看起来不错,但我认为该term=person项目是用于活动而不是社区,至少文档显示的是。你可以删除它,看看会发生什么。我有一种感觉,它压倒了owner你试图设定的角色。


推荐阅读