You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Failed to set nickname field for user `{zitadel_id}: {:?}",
338
-
error
339
-
);
340
-
continue;
341
-
};
342
-
343
-
tracing::info!("Updated LDAP link for user `{zitadel_id}`");
344
-
}
345
-
Some(nick)if*nick != ldap_id => {
346
-
tracing::error!(
347
-
"External ID for user `{zitadel_id}` does not match the external ID for the LDAP user with their email address, {nick} {ldap_id}"
348
-
);
349
-
tracing::error!(
350
-
"Something has gone very wrong for this user, please correct their data manually"
351
-
);
352
-
continue;
353
-
}
354
-
Some(nick) => {
355
-
tracing::info!("User `{zitadel_id}` is already linked to user `{nick}`");
356
-
}
357
-
None => {
358
-
unreachable!()
359
-
}
338
+
339
+
zitadel_client
340
+
.zitadel_client
341
+
.update_human_user(zitadel_id, request)
342
+
.await
343
+
.with_context(|| format!("Failed to set nickname field for user `{zitadel_id}",))?;
344
+
345
+
tracing::info!("Updated LDAP link for user `{zitadel_id}`");
346
+
}
347
+
Some(nick)if*nick != ldap_id => {
348
+
bail!(
349
+
"External ID for user `{zitadel_id}` does not match the external ID for the LDAP user with their email address, {nick} {ldap_id}\nSomething has gone very wrong for this user, please correct their data manually"
350
+
);
351
+
}
352
+
Some(nick) => {
353
+
tracing::info!("User `{zitadel_id}` is already linked to user `{nick}`");
0 commit comments