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#

    • User Authentication Module
    • Management Module

      • Management user
      • Management role
      • Management permissions, access control
      • Management grouping
      • Management userpool configuration
      • Management registration white list
      • Management User Custom Fields
  • PHP

  • Go

  • Ruby
  • Android

  • iOS

  • Flutter

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

¶ GroupsManagementClient

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

This client is used to manage Authing groups,It can create/query/update/delete groups, add/delete users to/from groups, add/delete group's policy and perform other operations.

¶ Create a group

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

Create a Group

¶ Parameters

  • code <string> Group unique id
  • name <string> Group name
  • description <string> Description

¶ Example

var list = await managementClient.Groups.Create(code, "name");

¶ Delete a group

GroupsManagementClient().delete(code)

Delete a group

¶ Parameter

  • code <string> Group unique id

¶ Example

var message = await managementClient.Groups.Delete(code);

¶ Update a group

GroupsManagementClient().update(code, input)

Update a group.

¶ Parameters

  • code <string> The unique id of the group
  • input <Object>
  • input.name <string> new name
  • input.description <string> New description information
  • input.newCode <string> New unique id

¶ Example

var group = await client.Groups.Update(code, description: "asd");

¶ Get group details

GroupsManagementClient().detail(code)

Get group details

¶ Parameter

  • code <string> Group unique id

¶ Example

var policy = await managementClient.Groups.Update(code, description: "asd");

¶ Get the group list

GroupsManagementClient().list(page, limit)

Get the group list

¶ Parameters

  • page <number> Page number. Default value: 1。
  • limit <number> Groups per page. Default value: 10。

¶ Example

var list = await managementClient.Groups.List();

¶ Bulk delete groups

GroupsManagementClient().deleteMany(codeList)

Bulk delete groups

¶ Parameter

  • codeList <string[]> a list of unique id of the groups

¶ Example

var message = await managementClient.Groups.DeleteMany(new string[] { code });

¶ Get users list of the group

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

Get users list of the group

¶ Parameters

  • code <string> Group unique id
  • page <number> Page number, default value: 1。
  • limit <number> Users per page, default value: 10。

¶ Example

var users = managementClient.Groups.ListUsers(code);

¶ Add users to a group

GroupsManagementClient().addUsers(code, userIds)

Add users to a group

¶ Parameters

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

¶ Example

await managementClient.Groups.AddUsers(code, new string[] { userId1, userId2 });

¶ Delete users from a group

GroupsManagementClient().removeUsers(code, userIds)

Delete users from a group

¶ Parameters

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

¶ Example

await managementClient.Groups.RemoveUsers(code, new string[] { userId1, userId2 });
Prev: Management permissions, access control Next: Management userpool configuration
  • Create a group
  • Delete a group
  • Update a group
  • Get group details
  • Get the group list
  • Bulk delete groups
  • Get users list of the group
  • Add users to a group
  • Delete users from a group

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.