Skip to content

Map Email Domains to Roles #1904

@homotechsual

Description

@homotechsual

Describe the feature you'd like
It would be nice to map email addresses to roles - if a user registers/signs in with an email address at the domain example.org add them to the ExampleOrg role. We're using the AzureAD auth provider without a Tenant ID (multi-tenant) so our customers are logging in with their own Office 365/Azure AD credentials.

Describe the benefits this feature would bring to BookStack users
In tandem with the email verification workflow this would allow BookStack to store customer specific documentation items with some access control (grant the role access to those chapters/books) and have the role auto assigned.

Additional context
This looks to be similar to the LDAP_USERS_TO_GROUPS setup and could probably reuse some of that logic - assuming the feature is acceptable we wouldn't be opposed to trying for a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions