Authing DocsDocuments
Concept
workflow
Guides
Development Integration
Application integration
Concept
workflow
Guides
Development Integration
Application integration
Old Version
Development Integration
  • Single Sign-On (SSO)
  • Login component

  • JavaScript/Node.js

  • Java / Kotlin

  • Python

  • C#

  • PHP

    • User Authentication Module
    • Management Module

      • Management user
      • Management application
      • Management role
      • Management resources and permissions
      • Management groups
      • Management organization
      • Management User Custom Fields
      • Management registration white list
      • Management userpool configuration
      • Management MFA
  • Go

  • Ruby
  • Android

  • iOS

  • Flutter

  • React Native
  • WeChat Mini Program
  • WeChat webpage authorization
  • Framework Integration
  • Error code
  1. Development Integration
  2. /
  3. PHP
  4. /
  5. Management Module
  6. /
  7. Management groups

¶ Manage grouping

Update Time: 2025-02-18 09:00:47
Edit

This module is used to manage Authing groups, which can be done, grouping / delete users, packet add / delete policies, etc.

¶ Create grouping

GroupsManagementClient().create(code, name, description)

Create grouping

¶ parameter

  • code <string> Group unique marker
  • name <string> Group Name
  • description <string> description

¶ Example

$group = $managementClient->groups()->create("code", "group name");

¶ 删除分组

GroupsManagementClient().delete(code)

删除分组

¶ parameter

  • code <string> 分组唯一标志符

¶ Example

$managementClient->groups()->delete("code");

¶ Modify group

GroupsManagementClient().update(code, input)

Modify group

¶ parameter

  • code <string> Group unique marker
  • input <Object>
  • input.name <string> New name
  • input.description <string> New description information
  • input.newCode <string> New unique marker

¶ Example

$group = $managementClient->groups()->update("code", "group name");

¶ Get a group details

GroupsManagementClient().detail(code)

Get a group details

¶ parameter

  • code <string> Group unique marker

¶ Example

$group = $managementClient->groups()->detail("code");

¶ Get a list of groups

GroupsManagementClient().list(page, limit)

Get a list of groups

¶ parameter

  • page <number> The number of page numbers is: 1.
  • limit <number> The number of defaults per page is: 10.

¶ Example

$groups = $managementClient->groups()->paginate();

¶ Batch delete group

GroupsManagementClient().deleteMany(codeList)

Batch delete group

¶ parameter

  • codeList <string[]> Group unique logo list

¶ Example

$managementClient->groups()->deleteMany(["code"]);

¶ Get a list of group users

GroupsManagementClient().listUsers(code, page, limit)

Get a list of group users

¶ parameter

  • code <string> Group unique marker
  • page <number> The number of page numbers is: 1.
  • limit <number> The number of defaults per page is: 10.

¶ Example

$users = $managementClient->groups()->listUsers("code");

¶ Add user

GroupsManagementClient().addUsers(code, userIds)

Add user

¶ parameter

  • code <string> Group unique marker
  • userIds <string[]> User ID list

¶ Example

$managementClient->groups()->addUsers("code", ["userId"]);

¶ Removal user

GroupsManagementClient().removeUsers(code, userIds)

Removal user

¶ parameter

  • code <string> Group unique marker
  • userIds <string[]> User ID list

¶ Example

$managementClient->groups()->removeUsers("code", ["userId"]);
Prev: Management resources and permissions Next: Management organization
  • Create grouping
  • 删除分组
  • Modify group
  • Get a group details
  • Get a list of groups
  • Batch delete group
  • Get a list of group users
  • Add user
  • Removal user

User identity management

Integrated third-party login
Mobile phone number flash check (opens new window)
Universal login form component
Custom authentication process

Enterprise internal management

Single Sign On
Multi-factor Authentication
Authority Management

Developers

Development Document
Framework Integration
Blog (opens new window)
GitHub (opens new window)
Community User Center (opens new window)

Company

400 888 2106
sales@authing.cn
16 / F, Block B, NORTH STAR CENTURY CENTER, Beijing(Total)
room 406, 4th floor, zone B, building 1, No. 200, Tianfu Fifth Street, Chengdu(branch)

Beijing ICP No.19051205-1

© Beijing Steamory Technology Co.