Skip to content

Get group information

Gets a list of groups bind with users, paginated ,only support admin user call,general user referGet user group information

API info

Url: basic_api/v1/org/get_user_org

Method: GET

Content-Type:x-www-form-urlencoded

Request parameter

fieldtyperequireddesc
userGuidintegernoUser ID. Only when you log in as the super administrator, the user needs to query the information about the specified management user

Response data (type:array(object))

fieldtypedesc
orgGuidintegerGroup ID
orgNamestringGroup name
sortIDintegerSort the ID, the smaller it is, the higher it is
parentGuidintegerParent group ID

Example

Request example

url
http://localhost:8080/basic_api/v1/org/get_user_org?userGuid=1
http://localhost:8080/basic_api/v1/org/get_user_org?userGuid=1

Response example

json
{
	"hdr": {
		"code": 200,
		"message": "success"
	},
	"data": [{
        "orgGuid": 1,
        "orgName": "Test",
        "sortID": 1,
        "parentGuid": 0
    }]
}
{
	"hdr": {
		"code": 200,
		"message": "success"
	},
	"data": [{
        "orgGuid": 1,
        "orgName": "Test",
        "sortID": 1,
        "parentGuid": 0
    }]
}