且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在KeyCloak中批量更新用户

更新时间:2023-09-28 23:02:04

您可以访问Keycloak的数据库吗?在这种情况下,您可以使用SQL语句更新用户的数据.该模式非常容易理解,我之前已经以这种方式进行了批量更新.

Do you have access to Keycloak's database? If that's the case, you may update users' data with SQL sentences. The schema is pretty straightforward to understand, I've made bulk updates in this fashion before.

状态"是什么意思?如果您表示已启用"状态,则更新将如下所示:

What do you mean by "status"? If you mean the "enabled" status, your update will look like this:

UPDATE user_entity SET enabled = (value) WHERE (your conditions)

AFAIK,无法通过REST或管理控制台进行批量更新.

AFAIK, there's no way to bulk update through REST or the admin console.

祝你好运!