↑↓ to navigate ↵ to open Esc to close Search by Algolia

You are reading the documentation of FileRun 2026.4.0, which is not released yet. It is subject to change, so do not use it for planning. Read this page for FileRun 2026.3.0

API: Set the groups of a FileRun user account

Target URL /api.php/Core/!admin/users/edit_groups
Required scope admin
HTTP Method POST
Output format JSON

Request Parameters Reference

Parameter Type Required Description
UID integer Yes The user ID
groups array No The names of the groups the account is to be a member of. Groups which do not exist are created, owned by the owner of the account.

The request replaces the group memberships of the account: the account is added to the groups listed that it is not a member of yet, then removed from the groups that are not listed. Sending no groups removes the account from all groups. Since FileRun 2026.3.0 the administrator must be allowed to manage the account.

Leaving a group deletes the web links, the stars and the folder notification rules of the account inside the folders shared with the group. A guest account left without any share by the change is deleted.

Each group is joined or left on its own. When one of them cannot be joined or left, the account keeps its membership of that group as it was, the others are still changed, and the request fails with the reason. A group that the account could not leave can be left with a new request.

To add or remove a single membership without touching the others, use the group endpoints instead.

The response

The data object carries UID, the user ID, add_to_group, an object mapping each group name to the ID of the group the account was added to, and remove_from_group, the list of the IDs of the groups the account left.