REST Api to get all the groups list associated with a space - confluence

I am using confluence 7.13.7. I want a way through which I can get the list of all the groups associated with a space. Is there any API through which I can get this list?

Related

Is there a method to fetch individual users added to Confluence space

I want to retrieve all the individual users mapped to a Confluence space along with the permission granted to them. Is there a method to achieve the same via REST API?
Right now there is no way to get permission info on a space using the REST API.
An option would be to write your own Rest Service (using the Atlassian API diretly or via Scriptrunner) and query that.
A 2nd option, yet a bit cumbersome would be to call the permissions page of the space admin, and use webscraping to get the users and groups, and then expand the groups to get all users in these groups.
Please keep in mind that you might get all confluence users for some spaces which might cause a problem.
Why do you need this information? Maybe there is another way to solve your problem?

How to get all items by feature in Azure DevOps

How to get all task items by feature id?
I want to get all the items that belong to a particular feature. Is it possible to do it by using the Rest API?
You can do it with the Work Items - Get Work Item API with the $expand parameter:
GET https://dev.azure.com/{organization}/{project}/_apis/wit/workitems/{id}?$expand=relations&api-version=5.1
The $expand=relations parameter will return all the items that linked to the work item.

SharePoint Rest API across subsites

I am trying to make a single rest api call from a top level site to get results from multiple picture libraries on multiple subsites. Is this possible and if not, what is the best way of approaching this.
I do have a rest api call to retrieve all subsites but I need to retrive results from libraries on a single request.
https://xxxx/_api/web/webs/?$select=title,ServerRelativeUrl"
Unfortunately it is not possible to query multiple lists using a single SharePoint REST API call, as to fetch data from a list you have to specify its parent web and title/ID. Usually for these kinds of queries the best choice is to utilize SharePoint Search REST API (Reference) or, if you can utilize some server side code, you can use the SPSiteDataQuery class to make fetch data from across whole sites or site collections (have a look at this article about SPSiteDataQuery).
Also, have a look at this SO question: Fetch data from multiple list sharepoint REST API in one Ajax call

How To Use SharePoint 2013 REST API In Order To Remove Contribute Permission On List Item

I want to break the roleinheritance with the SharePoint REST API on a single list item. This can be done using http:///_api/Web/Lists(guid'listid')/Items(itemid)/breakroleinheritance(false).
I am using false as parameter in order not to copy the permissions from the list.
The next goal is to assign reader permission to couple of groups and users (I have the Ids of the users and the groups)
But the next step is more complicated. I must use POST requests in order to update/add permissions and cannot find examples on this.
Any ideas are much appreciated.
Thanks.

Searching for more than one user

I would like to use Graph API to search for users whose names are "John" or "Mark".
https://graph.facebook.com/search?q=john&type=user
https://graph.facebook.com/search?q=mark&type=user
Is it possible to receive those informations using only one request? Something like "q1=mark&q2=john" ?
You could use the batch API to group both requests in a single API call.
http://developers.facebook.com/docs/reference/api/batch/