Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Hi, Is there a way to assign a default group to newly sign in user ? Currently I am doing something like this,

    const res = await this.casdoorService.createUser({
      email: data.email,
      name: data.username,
      password: ***,
      groups: this.dynamicConfig.defaultGroups,
    })

Here I assign the groups when creating the user.

However if a user choose 3rd party oauth service, then casdoor it self creates the user. So Im wondering if there's any way to configure the default groups for any new user without writing any code ?

1views
2users
1 minread
1 / 3
Dec 2024