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

  • Go

    • User authentication module

    • Management module

      • Management resources and permissions
      • Management user
      • Management organization
      • Management role
  • Ruby
  • Android

  • iOS

  • Flutter

  • React Native
  • WeChat Mini Program
  • WeChat webpage authorization
  • Framework Integration
  • Error code
  1. Development Integration
  2. /
  3. Go
  4. /
  5. Management module
  6. /
  7. Management role

¶ Management role

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

This module is used to manage the Authing role, and the role can be changed, the role add/delete the user.

¶ Get a list of roles

management.NewClient(userPoolId, appSecret).GetRoleList(req)

Get a list of roles

¶ parameter

  • model.QueryListRequest <QueryListRequest>
  • QueryListRequest.Page <int> default: 1
  • QueryListRequest.Limit <int> default: 10
  • QueryListRequest.SortBy <SortByEnum> sorting rules

¶ Example

client := management.NewClient(userPoolId, appSecret)
req := model.GetRoleListRequest{
		Page:   1,
		Limit:  10,
		SortBy: enum.SortByCreatedAtAsc,
}
resp, _ := client.GetRoleList(req)

¶ Get a list of users

management.NewClient(userPoolId, appSecret).GetRoleUserList(req)

Get the user list, the interface is a paging interface.

¶ parameter

  • model.GetRoleUserListRequest <GetRoleUserListRequest>
  • GetRoleUserListRequest.Page <int> default: 1
  • GetRoleUserListRequest.Limit <int> default: 10
  • GetRoleUserListRequest.Code <string> role Code
  • GetRoleUserListRequest.Namespace <string> group ID

¶ Example

client := management.NewClient(userPoolId, appSecret)
req := model.GetRoleUserListRequest{
		Page:      1,
		Limit:     10,
		Code:      "develop",
		Namespace: "default",
	}
	resp, _ := client.GetRoleUserList(req)
Prev: Management organization Next: Ruby
  • Get a list of roles
  • Get a list of users

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.