1 Reply Latest reply on Apr 10, 2018 2:53 PM by john_reynolds

    Getting Space owners using REST API

    goutam.holla

      Hi Team,

       

      I am trying to get space owners using rest api and unable to achieve the same.

      Please suggest me the things which will help me to get space admins without accessing the Database.

       

      Ryan Rutan   Matt Collinge Is it possible to get space owners using rest api?

       

      Your kind assistance will be greatly appreciated.

       

      Thanks,

      Goutam

        • Re: Getting Space owners using REST API
          john_reynolds

          Hi Goutam,

           

          At this time, you can't get Space owners using the REST API. In Jive, the "owner" could be complicated because you can have:

          • User overrides, with or without Administer access
          • User group overrides, with or without Administer access

           

          For this reason, there is no single query that can return a list of user objects that can administer

           

          The /places service does allow you to check if the authenticated user or specified user is an owner of a social group, but social groups do have specific users as owners

           

          Jive REST API v3.14 → Place service

          ...

          relationshipChoose one of the following options:
          • following - Returns places the authenticated user is following. Available since 3.4.
          • following(person uri) - Returns places the specified user is following. Available since 3.10.
          • member - Returns social groups the authenticated user is a member of. Available since 3.4.
          • member(person uri) - Returns social groups the specified user is a member of. Available since 3.10.
          • owner - Returns social groups the authenticated user is an owner of. Available since 3.4.
          • owner(person uri) - Returns social groups the specified user is an owner of. Available since 3.10.
          • recentlyviewed - Returns places that the authenticated user recently viewed. Available since 3.4.
          This filter cannot be combined with other filters.
          ?filter=relationship(member) or filter=relationship(following(https://example.jiveon.com/api/core/v3/people/2003))

          ...

           

          Is your community Hosted or Cloud?  If Hosted, you would have to build a plugin and use the Java API or a direct database call.

          3 people found this helpful