Skip to main content
Version: v2026.0.0

The GroupService service exposes the following operations:

  • create: to create a group
  • get: to retrieve a group
  • update: to modify a group
  • search: to search for groups
  • delete: to delete a group

Retrieving groups

Model​

The parameters to be entered are:

NameDescription
namesUnique identifiers of groups to be retrieved (separated by commas)
resolveAuthoritiesDetermines whether profiles and groups are to be resolved

Example​

The example below shows how to retrieve groups.

# <CORE_HOST>             FlowerDocs Core base URL
# <TOKEN> authentication token
# <NAMES> group names to be retrieved
# <RESOLVE_AUTHORITIES> whether to resolve authorities (true/false)
curl -X GET "<CORE_HOST>/rest/groups/<NAMES>?resolveAuthorities=<RESOLVE_AUTHORITIES>" \
-H "token: <TOKEN>"

Searching for groups

Model​

The parameter to be entered is name, and corresponds to the searched value. The search can be based on the group name, either fully or partially filled in.

Example​

The example below shows how to search for groups.

# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN> authentication token
# <NAME> group name
curl -X GET "<CORE_HOST>/rest/groups/search?name=<NAME>" \
-H "token: <TOKEN>"

Creating and modifying a group

Model​

The model used by create and update calls looks like this:

{
"id": "string",
"displayName": "string",
"mail": "string",
"attributes": [
{
"name": "string",
"values": [
"string"
]
}
],
"groups": [
"string"
],
"profiles": [
"string"
],
"members": [
"string"
]
}

Here is the description associated with the call data set:

  • id: unique group identifier
  • displayName and mail: group information
  • profiles and groups: respective lists of profiles and parent groups
  • members: list of user identifiers belonging to this group
  • attributes: list of additional attributes

Example​

The examples below show how to create and modify a group.

# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN> authentication token
curl -X POST "<CORE_HOST>/rest/groups/" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"id": "developers",
"displayName": "Development Team",
"mail": "dev@example.com",
"attributes": [],
"groups": [],
"profiles": [
"AllUsers"
],
"members": [
"user1", "user2"
]
}'

Deleting a group

Model​

The parameter to be entered is name, the unique identifier of the group to be deleted.

Example​

The example below shows how to delete a group.

# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN> authentication token
# <NAME> group name
curl -X DELETE "<CORE_HOST>/rest/groups/<NAME>" \
-H "token: <TOKEN>"