Questions tagged [sonata-user-bundle]

Integrates the `FOS/UserBundle` in the Sonata Admin Project to add some features related to the users.

Integrates the FOS/UserBundle in the Sonata Admin Project and adds some features:

  • AdminBundle: add user and group management
  • EasyExtends: allows to generate Application level model
  • Features: User profile dashboard, user profile menu, Google Authenticator support (optional), …

The roles to be assigned to users are splitted in 2 parts:

  • editable: the roles the current user is allowed to assign to other users

(permission or role MASTER)

  • readonly: the roles assigned to the current user, however the current

user is only allowed to see them

When using ACL, the UserBundle prevents normal user to change settings of super-admin users.

To find more information :

244 questions
0
votes
1 answer

Argument #1 ($userProvider) must be of type ... UserProviderInterface

I have installed the Sonata User Bundle using the instructions. The process of loading user fixtures and clearing the cache work fine, but once I try to access an area requiring authentication in the browser, I get this…
0
votes
1 answer

Unable to generate a URL for the named route "admin_app_sonatauseruser_create" after renaming SonataUserUser entity

My application worked fine until I decided to rename SonataUserUser to User and SonataUserUserGroup to group. This is how my user entity looks like namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Sonata\UserBundle\Entity\BaseUser; /** …
Masinde Muliro
  • 1,175
  • 3
  • 24
  • 38
0
votes
1 answer

Building Backoffice without SonataUserBundle

I am in the process of migrating a project from Symfony 2.8 to 3.4. In this project , I used sonataUserBundle as a dependency ( before migrating ) which unfortunately does not work in Symfony 3. So, I tried to use SonataAdminBundle with…
hbgamra
  • 749
  • 1
  • 6
  • 18
0
votes
0 answers

Composer require sonata-project/core-bundle in Symfony 3.4

I'd like to add sonata-project/user-bundle to Symfony 3.4 project but i received the following error message, BTW, i already installed "sonata-project/doctrine-orm-admin-bundle" : composer require…
hbgamra
  • 749
  • 1
  • 6
  • 18
0
votes
1 answer

Sonata Admin: One-to-many route to show action instead of edit

My problem is simple, but I can't find an answer anywhere in the docs or the code... When configuring show fields for a one-to-many relation, the records correctly appear in a list on the show page. They incorrectly link to the records edit action…
0
votes
0 answers

Security login with Sonata and FosUser

If I follow this documentation: https://symfony.com/doc/master/bundles/SonataAdminBundle/reference/security.html#user-list-customization I have the error Argument 1 passed to…
Minirock
  • 628
  • 3
  • 13
  • 28
0
votes
1 answer

The child node "db_driver" at path "fos_user" must be configured

Trying to implement user management with the Sonata User bundle : https://sonata-project.org/bundles/user/master/doc/reference/installation.html I'm under Symfony 4 and I already have installed the SonataAdminBundle But I have an error when I try…
Minirock
  • 628
  • 3
  • 13
  • 28
0
votes
1 answer

Edit Sonata User data

I'm trying to override Sonata User Admin class, on my bundle. For the moment, I just override the configureListFields method: namespace App\Admin; use Sonata\AdminBundle\Admin\AbstractAdmin; use Sonata\AdminBundle\Datagrid\ListMapper; use…
0
votes
1 answer

Add fields for Sonata UserBundle

I have a question about extending Sonata UserBundle entity. I need to add more fields to the entity. Firstly, I extended Sonata UserBundle to my project on the folder src\Application\Sonata\UserBundle Then I tried to add these fields on the User…
0
votes
1 answer

How to create user with fixtures with sonata admin

I started my application in Symfony 4.2 with FOSUserBundle and made a fixture file to create the admin. use FOS\UserBundle\Doctrine\UserManager; ... /** @var UserManager $userManager */ $userManager =…
0
votes
1 answer

Two different user_class for fos_user configuration

I have web site based on Symfony 3.4 and Sonata Admin with SonataNews Bundle, SonataUser bundle etc. Everything works fine. Now my customer wants web shop, and I choose aimeos for symfony. Now the problem is with users. In fos_user I have: …
repincln
  • 2,029
  • 5
  • 24
  • 34
0
votes
1 answer

sonata user-bundle symfony 3.4 problem installation with Flex

I have a problem with the installation of sonata-project/user-bundle on a Symfony 3.4 project using Symfony Flex. After the installation, during the execution of the script cache:clear, this one returned KO and the message is: The child node…
remi0291
  • 13
  • 2
  • 5
0
votes
2 answers

SonataUserBundle + FOSUserBundle Annotation Issue Doctrine Primary Key Error

Using Symfony 4.1, Sonata User Bundle 4.x, and FOSUserBundle 2.1.2. I am trying to override the table names for the User and Group tables. I therefore added annotations to the auto generated user and group classes: use…
Jack
  • 99
  • 5
0
votes
1 answer

Symfony 3.4 - SonataUser - Twig - Blank Page

I have a problem for 2 days, I'm new in Symfony. I'm using Symfony 3.4. I create a Backend with Sonata for manage Entities and User. My backend is ok, but now the twig templates are no longer working. I just have blank page. Can you help me ?…
0
votes
1 answer

SonataUserBundle::registerFormMapping() return value

I'm currently creating a website with Symfony3.2.4, I've installed Sonata News Bundle on my website. I'm trying to having an access to my website but Symfony show me an error. Type error: Return value of…
Webdev
  • 1
  • 1