Page tree
Skip to end of metadata
Go to start of metadata

Members can be added to a Space through the "addSpaceMembers" mutation on a WWClient or WWGraphQLEndpoint. The method takes a List of SpaceMemberObject objects. The SpaceMemberObject takes an id for the person and permissions. The permissions are not yet in use, so just pass a blank string. The methods return an ArrayList of members IDs added.

@Test(enabled = true)
@Parameters({ "appId", "appSecret","space2Id", "profileId" })
public void addMembersToSpace(String appId, String appSecret, String space2Id, String profileId) throws WWException, UnsupportedEncodingException {
    WWClient client = WWClient.buildClientApplicationAccess(appId, appSecret, new WWAuthenticationEndpoint());
    List<SpaceMemberObject> members = new ArrayList<SpaceMemberObject>();
    SpaceMemberObject obj = new SpaceMemberObject("1281ac4d-74f1-4aaa-bbb7-29123410aaa3", "");
    List<String> ids = client.addSpaceMembers(space2Id, members);
    assert ids.size() == 1;
  • No labels


  1. Anonymous

    I am very happy that I found this informative blog post. Many thanks for posting this information. You are really a great blogger and writer. Seems you are doing everything in a very systematic way. It is really very good actually. Truly clarifies everything in detail,the article is extremely fascinating and effective.Thank you and good fortunes for the up and coming article. Feel free to visit my site: Write my Essay

  2. Anonymous

    Hedefeated me or the childrento a melancholy if he beverages.A few
Write a comment…