Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to store roles & groups in database #11606

Closed
FlxRobole opened this issue Mar 20, 2025 · 2 comments
Closed

Unable to store roles & groups in database #11606

FlxRobole opened this issue Mar 20, 2025 · 2 comments

Comments

@FlxRobole
Copy link

Bug description

Apparently there is no way to store user roles and groups in the database?! This is not ideal for semi-persistent (Docker + ECS) or database-only environments.

I searched for this feature on:

without success.

How to reproduce

  • Create a role at "Roles & Permissions" (admin/roles) -> resources/users/roles.yaml added
  • Create a group at "User Groups" (admin/user-groups) -> resources/users/groups.yaml added

Logs

Environment

*

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

@ryanmitchell
Copy link
Contributor

You can - its just not documented it seems:

  1. change configs: statamic.users.tables.roles and statamic.users.tables.groups to be the names of the tables you want.
  2. run php please auth:migration to generate the migrations for roles/groups.
  3. run artisan migrate

See: #5686

@duncanmcclean
Copy link
Member

Closing in favour of statamic/docs#1233.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants