Query User

Query User

Query given user or a set of users in ldap.

Request
URI
POST
https://{api_host}/https://{{host}}:{{port}}/api/v5/rbac/{instanceName}/query
COPY
Path Parameters
string
instanceName
Required

Instance name.

Query Parameters
string
userName
Required

LDAP username to run query on.

string
domainComponent
Optional

LDAP domain component to search user against.

boolean
filter
Optional

Enable filter to query users.


Responses
200

LDAP users.

[
    {
        "id": "string",
        "uid": "string",
        "authInstanceName": "string",
        "fullName": "string",
        "email": "string",
        "userMetaData": {
            "userMetaData": [
                "string"
            ]
        },
        "role": {
            "id": "string",
            "name": "string",
            "permissions": [
                {
                    "name": "string"
                }
            ]
        },
        "memberOf": [
            "string"
        ]
    }
]

401

Unauthorized access

[
    {
        "id": "string",
        "uid": "string",
        "authInstanceName": "string",
        "fullName": "string",
        "email": "string",
        "userMetaData": {
            "userMetaData": [
                "string"
            ]
        },
        "role": {
            "id": "string",
            "name": "string",
            "permissions": [
                {
                    "name": "string"
                }
            ]
        },
        "memberOf": [
            "string"
        ]
    }
]

404

Such resource was not found.

[
    {
        "id": "string",
        "uid": "string",
        "authInstanceName": "string",
        "fullName": "string",
        "email": "string",
        "userMetaData": {
            "userMetaData": [
                "string"
            ]
        },
        "role": {
            "id": "string",
            "name": "string",
            "permissions": [
                {
                    "name": "string"
                }
            ]
        },
        "memberOf": [
            "string"
        ]
    }
]

504

Connection timed out.

[
    {
        "id": "string",
        "uid": "string",
        "authInstanceName": "string",
        "fullName": "string",
        "email": "string",
        "userMetaData": {
            "userMetaData": [
                "string"
            ]
        },
        "role": {
            "id": "string",
            "name": "string",
            "permissions": [
                {
                    "name": "string"
                }
            ]
        },
        "memberOf": [
            "string"
        ]
    }
]