Skip to main content
Skip table of contents

List Users

The List Users operation lists all users that exist in Keycloak.

Input

The adapter does not expect any input. However, without input, only the first 100 users are returned. To list more users, use the following input:

XML
<KeycloakListUsersParameters>
<briefRepresentation></briefRepresentation>
<firstName></firstName>
<lastName></lastName>
<username>demo_1</username>
<email></email>
<offset></offset>
<limit>500</limit>
</KeycloakListUsersParameters>

The function of the parameters briefRepresentationfirstNamelastNameusername, and email corresponds to the function in the X4 API (Swagger UI), which can be accessed via the X4 Control Center. You can leave these parameters empty in the input document.

The parameters offset and limit have the following function:

  • offset: Number of users to be skipped from the beginning of the user list. 
  • limit: Maximum number of users to be returned. The specified number of users will be returned regardless of how many users are skipped with the offset parameter. Example: If offset is set to 50 and limit is set to 500 for 600 users, a list with the users 51–550 will be returned.

Example

Output

XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Users>
    <User>
        <Id>2302cf2f-9b29-4d62-9c48-67ac5e3b0ddc</Id>
        <CreatedTimestamp>1634133393343</CreatedTimestamp>
        <Username>exampleuser</Username>
        <Enabled>true</Enabled>
        <Totp>false</Totp>
        <EmailVerified>true</EmailVerified>
        <FirstName>Jane</FirstName>
        <LastName>Doe</LastName>
        <Email>john.doe@example.com</Email>
        <Attributes>
            <Attribute>
                <Name>Employment Relationship</Name>
                <Values>
                    <Value>Software Developer</Value>
                    <Value>Sub-Team Lead</Value>
                </Values>
            </Attribute>
        </Attributes>
        <NotBefore>0</NotBefore>
        <access>
            <entry>
                <key>manageGroupMembership</key>
                <value>true</value>
            </entry>
            <entry>
                <key>view</key>
                <value>true</value>
            </entry>
            <entry>
                <key>mapRoles</key>
                <value>true</value>
            </entry>
            <entry>
                <key>impersonate</key>
                <value>false</value>
            </entry>
            <entry>
                <key>manage</key>
                <value>true</value>
            </entry>
        </access>
    </User>
</Users>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.