Groups

Bulk add groups to users

Changed on

Bulk assign groups to multiple users, users under specific admins, or all users.

  • group_ids: List of group IDs to add (required)
  • users: Optional list of user IDs to assign the groups to
  • admins: Optional list of admin IDs — their users will be targeted

Notes:

  • If neither 'users' nor 'admins' are provided, groups will be added to all users
  • Existing user-group associations will be ignored (no duplication)
  • Returns list of affected users (those who received new group associations)
post/api/groups/bulk/add

Request

  • Base URL
    https://api.ha-man2.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.ha-man2.com/api/groups/bulk/add
  • Auth
    OAuth 2
    Password
    Token URL: /api/admin/token

Request body

group_idsinteger[] required
has_group_idsinteger[]
has_no_groupboolean
adminsinteger[]
usersinteger[]
dry_runboolean

Response

Success confirmation

unknown required

Changes