Returns space permission assignments for a specific space.
Permissions required: Permission to view the space.
read:space:confluence
Connect app scope required: READ
integer
Requiredstring
integer
Returned if the requested assignments are returned.
1
2
3
4
5
6
7
8
9
10
11
12
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
import api, { route } from "@forge/api";
const response = await api.asUser().requestConfluence(route`/wiki/api/v2/spaces/{id}/permissions`, {
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"results": [
{
"id": "<string>",
"principal": {
"type": "user",
"id": "<string>"
},
"operation": {
"key": "use",
"targetType": "page"
}
}
],
"_links": {
"next": "<string>",
"base": "<string>"
}
}
Retrieves the available space permissions.
Permissions required: Permission to access the Confluence site.
read:space.permission:confluence
Connect app scope required: READ
string
integer
Returned if the requested space permissions are retrieved.
1
2
3
4
5
6
7
8
9
10
11
12
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
import api, { route } from "@forge/api";
const response = await api.asUser().requestConfluence(route`/wiki/api/v2/space-permissions`, {
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"results": [
{
"id": "<string>",
"displayName": "<string>",
"description": "<string>",
"requiredPermissionIds": [
"<string>"
]
}
],
"_links": {
"next": "<string>",
"base": "<string>"
}
}
Rate this page: