Skip to main content
Version: Next

Getting Started With The User System

To get started using the Parthenon user module you will need to make a few small changes to your application.

Configuration

There are some configurations for the user module of Parthenon. These can be configured within the parthenon.yaml Symfony configuration file that should be within the config/packages/ directory of your Symfony application.

NameTypeDescriptionDefault Value
enabledBooleanTo define if the user module is enabled.false
teams_enabledBooleanDefines if teams are enabled. If they are a team is created upon a new user sign up.false
login_pathStringThe path where users should be redirected to when they log in.app_user_profile
signup_success_pathStringThe path where users should be redirected to when they sign up.app_user_signed_up
email_confirmationbooleanIf users are required to confirm their email before using the systemfalse
gdpr.exporter.formatter_typestringThis is the name of the exporter formatter to be used.json
teams_invites_enabledbooleanIf there can be team invites usedfalse
user_invites_enabledbooleanIf there can be normal user invites usedfalse
self_signup_enabledbooleanIf a user can sign up without an invitefalse
roles.default_rolestringThe default role given to a user when they sign upUSER_ROLE
roles.user_assignablearrayA list of roles that can be assigned and invited to by a userempty
roles.athena_assignablearrayA list of roles that can be assigned via Athena.empty

Example

parthenon:
user:
enabled: true
teams_enabled: true

Doctrine ORM Configuration

You'll need to make some changes to the doctrine orm configuration. You need to add the references for your classes that implement the Parthenon user interfaces. And to include the mappings for the Parthenon entities.

doctrine:
orm:
resolve_target_entities:
Parthenon\User\Entity\UserInterface: App\Entity\User
Parthenon\User\Entity\TeamInterface: App\Entity\Team

Doctrine ODM Configuration

You'll need to make some changes to the doctrine mongodb configuration. You need to add the references for your classes that implement the Parthenon user interfaces.

doctrine_mongodb:
resolve_target_documents:
Parthenon\User\Entity\UserInterface: App\Document\User
Parthenon\User\Entity\TeamInterface: App\Document\Team