Add a community member programmaticallyTo add a member to the access control list of a community, send an Atom entry document containing the new member to the access control list feed. You can only add one member per post.
You can use this method to add members to subcommunities as well as communities with the following limitations:
- You can only add people who are members of the parent community.
- Anyone who is listed as an owner of the parent community is automatically an owner of the subcommunity; you cannot remove nor limit the privileges of a subcommunity owner.
See Authenticating requests for information about how to authenticate the request.
Table 1. Atom API request details
Method Resource URI Input representation POST acl list feed Found in the href attribute of <link> element that has a rel="http://www.ibm.com/xmlns/prod/sn/member-list" attribute value for each community member
InputProvide a member Atom entry document.
Note: The content type of the Atom entry document must be application/atom+xml.
OutputAn Atom entry document containing the new member entry.
Returned HTTP headers
HTTP/1.1 201 Created
Indicates that the member was successfully added to the acl list. If an error occurs, this header will contain one of the error codes below.
Link to edit_url of the new member entry. You can use the web address specified here to subsequently retrieve and update the member entry.
- HTTP/1.1 400 Bad Request
- HTTP/1.1 403 Forbidden
Parent topicWork with community members
Add a member programmatically
Member entry content