0 Replies Latest reply on Jan 9, 2014 1:55 AM by tillwestermann

    Security for spaces via the REST API

    tillwestermann

      Dear developers,

      I am trying to get the permissions of a space from the rest API. For this, I have created a space where only the members of a security group have access to. In Jive, this works perfectly and only the users in this security group are able to access the space.

       

      When I make a call to the REST API, I get the following for this space:

       

      {

        "id" : "2005",

        "resources" : {

        "templateInstance" : {

        "allowed" : [ "GET" ],

        "ref" : "https://raytion-dev.jiveon.com/api/jivelinks/v1/templates/definitions/1000/prototype?placeURI=https://raytion-dev.jiveon.com/api/core/v3/places/1124"

        },

        "contents" : {

        "allowed" : [ "GET", "POST" ],

        "ref" : "https://raytion-dev.jiveon.com/api/core/v3/places/1124/contents"

        },

        "self" : {

        "allowed" : [ "DELETE", "PUT", "GET" ],

        "ref" : "https://raytion-dev.jiveon.com/api/core/v3/places/1124"

        },

        "places" : {

        "allowed" : [ "GET" ],

        "ref" : "https://raytion-dev.jiveon.com/api/core/v3/places/1124/places"

        },

        "avatar" : {

        "allowed" : [ "DELETE", "GET", "POST" ],

        "ref" : "https://raytion-dev.jiveon.com/api/core/v3/places/1124/avatar"

        },

        "featuredContent" : {

        "allowed" : [ "GET" ],

        "ref" : "https://raytion-dev.jiveon.com/api/core/v3/places/1124/contents/featured"

        },

        "extprops" : {

        "allowed" : [ "DELETE", "GET", "POST" ],

        "ref" : "https://raytion-dev.jiveon.com/api/core/v3/places/1124/extprops"

        },

        "followers" : {

        "allowed" : [ "GET" ],

        "ref" : "https://raytion-dev.jiveon.com/api/core/v3/places/1124/followers"

        },

        "announcements" : {

        "allowed" : [ "GET", "POST" ],

        "ref" : "https://raytion-dev.jiveon.com/api/core/v3/places/1124/announcements"

        },

        "categories" : {

        "allowed" : [ "GET", "POST" ],

        "ref" : "https://raytion-dev.jiveon.com/api/core/v3/places/1124/categories"

        },

        "html" : {

        "allowed" : [ "GET" ],

        "ref" : "https://raytion-dev.jiveon.com/community/privatespace"

        },

        "followingIn" : {

        "allowed" : [ "GET", "POST" ],

        "ref" : "https://raytion-dev.jiveon.com/api/core/v3/places/1124/followingIn"

        },

        "activity" : {

        "allowed" : [ "GET" ],

        "ref" : "https://raytion-dev.jiveon.com/api/core/v3/places/1124/activities"

        },

        "statics" : {

        "allowed" : [ "GET", "POST" ],

        "ref" : "https://raytion-dev.jiveon.com/api/core/v3/places/1124/statics"

        }

        },

        "followerCount" : 1,

        "published" : "2014-01-08T09:10:35.346+0000",

        "tags" : [ ],

        "updated" : "2014-01-09T09:37:14.061+0000",

        "iconCss" : "jive-icon-space",

        "placeID" : "1124",

        "contentTypes" : [ "blog", "documents", "files", "discussions", "polls", "videos", "events" ],

        "description" : "a private space, managed by a security group",

        "displayName" : "privatespace",

        "name" : "private_space",

        "parent" : "https://raytion-dev.jiveon.com/api/core/v3/places/1000",

        "status" : "Active",

        "viewCount" : 12,

        "visibleToExternalContributors" : false,

        "childCount" : 0,

        "locale" : "en_US",

        "type" : "space"

        }

       

      I do not see any hint that this space's permissions are handled by a security group. Just to prove that it really is the case, I have attached a screen shot from the admin console.

       

      Any advice how to proceed here?

       

      Thank you very much!

      Till