View Issue Details

IDProjectCategoryView StatusLast Update
0007725OXID eShop (all versions)1.05. Userspublic2024-09-27 15:25
ReporterbYemma Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionno change required 
Product Version7.1.0 
Summary0007725: Should admin usergroup be assigned for new admin account?
DescriptionAfter creating a new admin account on the console, the user is not assigned to usergroup "Shop-Admin".
I think that would be a useful extension.
Steps To ReproduceUsed command for creating new admin user:
./vendor/bin/oe-console oe:admin:create-user --admin-email=xyz --admin-password='xyz'
TagsNo tags attached.
ThemeAll
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined

Activities

QA

2024-09-26 14:28

administrator   ~0017608

Hi @bYemma,

thank you for your report!

I've checked the case if the administration area does assign a new user, flagged as admin, to the oxidadmin group, but it doesn't. As far as I can see there are pieces of test data left over in the Codeception tests (https://github.com/OXID-eSales/oxideshop_ce/blob/c7fffe8b2143ad8dc4c7598a9baecec174ad77ba/tests/Codeception/Support/Data/dump.sql#L54), but the framework doesn't add a new admin user to this very group. So I classify this as a feature request (as I can imagine it could be useful to have an automated workflow (e.g. If this event happens, then do that)). That's why I'm closing this bug entry but I've forwarded the feature request to our Requirements Engineer.

Kind regards
Michael Keiluweit

michael_keiluweit

2024-09-27 15:25

administrator   ~0017611

Just a note: GraphQL uses the user groups to authorize the users. That affects also administrator relevant actions. For that the documentation states to make use of the group oxidadmin: https://docs.oxid-esales.com/interfaces/graphql/en/latest/authorization.html#id1