Get Group List By Username

Call Instructions:

  1. This interface queries all user related groups based on the user name

  2. This interface is called only by system administrators


Interface Information

Interface Information

Name

Get Group List By Username

Address

/rest/tools/1.0/api/group/getGroupFromUser

Method

GET

Return Type

Json

Authentication

Basic,token

Parameters

Parameter name

Required

Parameter type

Description

name

Y

String

Username

return value format

Field

Type

Description

code

int

msg

String

total

int

Total data

isMore

bool

true or false

data

String

[{
“name”:”group name”
},
{
“name”:”group name”
}]


Example Postman call

 


Example return value

{ "code": 0, "msg": "Success", "data": [ { "name": "confluence-users" } ] }