如何在Keycloak中显示用户的角色

时间:2019-09-23 17:09:32

标签: postman keycloak

在邮递员中发出此请求时,我无法显示用户的角色:

http://localhost:8080/auth/admin/realms/myrealms/users

我使用密钥斗篷管理员。

下面是结果示例:

[
    {
        "id": "90622a67-dbe2-4329-b1ed-b7ea39a327cc",
        "createdTimestamp": 1568812559007,
        "username": "test",
        "enabled": true,
        "totp": false,
        "emailVerified": false,
        "email": "test@test.com",
        "attributes": {
            "myattr": [
                "net"
            ]
        },
        "disableableCredentialTypes": [
            "password"
        ],
        "requiredActions": [],
        "notBefore": 0,
        "access": {
            "manageGroupMembership": true,
            "view": true,
            "mapRoles": true,
            "impersonate": true,
            "manage": true
        }
    },
]   

0 个答案:

没有答案