GET

Get user properties

Returns the properties for a user as list of property keys. For more information about user properties, see Confluence entity properties. Note, these properties stored against a user are on a Confluence site level and not space/content level.

Permissions required: Permission to access the Confluence site ('Can use' global permission).

Data Security Policy: Exempt from app access rules
Scopes
read:user.property:confluence

Connect app scope requiredREAD

Request

Path parameters

userId

string

Required

Query parameters

start

integer

limit

integer

Responses

Returned if the requested properties are returned.

application/json

UserPropertyKeyArray
GET/wiki/rest/api/user/{userId}/property
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/rest/api/user/{userId}/property`, { headers: { 'Accept': 'application/json' } }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 9 10 11 { "results": [ { "key": "<string>" } ], "start": 2154, "limit": 2154, "size": 2154, "_links": {} }
GET

Get user property

Returns the property corresponding to key for a user. For more information about user properties, see Confluence entity properties. Note, these properties stored against a user are on a Confluence site level and not space/content level.

Permissions required: Permission to access the Confluence site ('Can use' global permission).

Data Security Policy: Exempt from app access rules
Scopes
read:user.property:confluence

Connect app scope requiredREAD

Request

Path parameters

userId

string

Required
key

string

Required

Responses

Returned if the requested properties are returned.

application/json

UserProperty
GET/wiki/rest/api/user/{userId}/property/{key}
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/rest/api/user/{userId}/property/{key}`, { headers: { 'Accept': 'application/json' } }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 { "key": "<string>", "value": {}, "id": "<string>", "lastModifiedDate": "<string>", "createdDate": "<string>", "_links": {} }
PUT

Update user property

Updates a property for the given user. Note, you cannot update the key of a user property, only the value. For more information about user properties, see Confluence entity properties. Note, these properties stored against a user are on a Confluence site level and not space/content level.

Permissions required: Permission to access the Confluence site ('Can use' global permission).

Data Security Policy: Exempt from app access rules
Scopes
write:user.property:confluence

Connect app scope requiredWRITE

Request

Path parameters

userId

string

Required
key

string

Required

Request bodyapplication/json

The user property to be updated.

value

object

Required

Responses

Returned if the user property is updated.

PUT/wiki/rest/api/user/{userId}/property/{key}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import api, { route } from "@forge/api"; var bodyData = `{ "value": {} }`; const response = await api.asUser().requestConfluence(route`/wiki/rest/api/user/{userId}/property/{key}`, { method: 'PUT', headers: { 'Content-Type': 'application/json' }, body: bodyData }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.text());
POST

Create user property by key

Creates a property for a user. For more information about user properties, see [Confluence entity properties] (https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). Note, these properties stored against a user are on a Confluence site level and not space/content level.

Note: the number of properties which could be created per app in a tenant for each user might be restricted by fixed system limits. Permissions required: Permission to access the Confluence site ('Can use' global permission).

Data Security Policy: Exempt from app access rules
Scopes
write:user.property:confluence

Connect app scope requiredWRITE

Request

Path parameters

userId

string

Required
key

string

Required

Request bodyapplication/json

The user property to be created.

value

object

Required

Responses

Returned if the user property is created.

POST/wiki/rest/api/user/{userId}/property/{key}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import api, { route } from "@forge/api"; var bodyData = `{ "value": {} }`; const response = await api.asUser().requestConfluence(route`/wiki/rest/api/user/{userId}/property/{key}`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: bodyData }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.text());
DEL

Delete user property

Deletes a property for the given user. For more information about user properties, see Confluence entity properties. Note, these properties stored against a user are on a Confluence site level and not space/content level.

Permissions required: Permission to access the Confluence site ('Can use' global permission).

Data Security Policy: Exempt from app access rules
Scopes
write:user.property:confluence

Connect app scope requiredWRITE

Request

Path parameters

userId

string

Required
key

string

Required

Responses

Returned if the user property is deleted.

DEL/wiki/rest/api/user/{userId}/property/{key}
1 2 3 4 5 6 7 8 9 10 // 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/rest/api/user/{userId}/property/{key}`, { method: 'DELETE' }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.text());

Rate this page: