ibm-cloud - 使用 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>
它总是让我成为会员,而不是所有者。我们如何在社区中创建具有所有者角色的用户?
解决方案
它看起来不错,但我认为该term=person
项目是用于活动而不是社区,至少文档显示的是。你可以删除它,看看会发生什么。我有一种感觉,它压倒了owner
你试图设定的角色。
推荐阅读
- html - 使用 JQuery 修改 HTML 中的类名
- python - 为什么有些人将两个不同网络的参数链接起来并用相同的优化器训练它们?
- android - putBytes() 与 putFile() 用于上传图像
- discord.js - 我安装了 quick.db,但它仍然无法正常工作
- c++ - 通过将对象显式存储为基类来抑制虚拟机制?
- android - 在 React-native 中 Gradle allprojects
- javascript - 如果消息以前缀 + 使用 discord.js 的命令开头,如何使 if 语句起作用
- excel - 从 API 下载 CSV 文件,其列数可变
- http - 使用 HTTP 的聊天应用程序会是什么样子?
- css - 如何使用样式组件在反应中使我的背景图像适合手机屏幕