MisterOutofTime
MisterOutofTime•2mo ago

limit self registration to org email?

is it possible so that only people with a @mysuperdomain.tld email can register in the organization mysuperdomain.tld ?
2 Replies
MisterOutofTime
MisterOutofTimeOP•2mo ago
maybe with external auth pre creation
function test(ctx,api) {
if(!ctx.v1.user.email.email.contains("@mysuperdomain.tld") {
throw "Not Allowed"
}
}
function test(ctx,api) {
if(!ctx.v1.user.email.email.contains("@mysuperdomain.tld") {
throw "Not Allowed"
}
}
Rajat
Rajat•2mo ago
hey @MisterOutofTime no need for actions, you can setup Domain Discovery 🙂
ZITADEL Docs
This guide should explain how domain discovery works and how to configure it in ZITADEL.

Did you find this page helpful?