Add Default Role to New User Sign-up

Hi @amckendrick,

There are different approaches here, and not necessarily one standard way. I will try and lay out what I know about the topic. These could be pros or cons depending on your needs.

Using a post registration hook to add the role:

  • Limited to database connections (will not be applied to social connections)
  • Does not require a login to assign the role
  • Role assigned when you create a new user via the management api/dashboard
  • Role assigned after a successful signup via the custom signup page ( /dbconnections/signup endpoint)
  • Role assigned after successful signup through the hosted login solutions
  • Limited by management API rate limits

Using a rule:

  • Requires a first login to assign the role (not assigned on creation via API, dashboard, signup endpoint)
  • Applies to all connections (db, social, etc.)
  • Limited by management API rate limits

If you have a use-case not covered here, our product team would like to get your feedback.

I hope that helps clarify things.

Thanks,
Dan

1 Like