How to Assign a Role to a User?

Posted In Voyager
  • omri-dotan 1 year ago
    I cannot figure out How to Assign a Role to a User? Any help would be greatly appreciated

    I cannot figure out How to Assign a Role to a User? Any help would be greatly appreciated

  • omri-dotan 1 year ago
    I hope someone can help me, I have no idea what to do...

    I hope someone can help me, I have no idea what to do...

  • omri-dotan 1 year ago
    Help... Anyone?

    Help... Anyone?

  • gaurav-sharma 11 months ago
    Which version you fo voyager are you using ?? there is a default page for Role in voyager admin panel. 
    
    https://snag.gy/hxR8IE.jpg
    
    
    After Select Role go into user section and than add role to user

    Which version you fo voyager are you using ?? there is a default page for Role in voyager admin panel.

    https://snag.gy/hxR8IE.jpg

    After Select Role go into user section and than add role to user

  • kelly-schuerman 9 months ago
    I have this exact question.  I have a Laravel project with Voyager that is connected to an Active Directory with approximately 5000 active users. Assigning roles through the GUI is not feasible. 
    
    Unfortunately it seems that the spatie/laravel-permission package is incompatible with Voyager because it has an assignRole() method that works perfectly for assigning a role based on AD group membership when the user logs in.
    
    There has to be a method within Voyager to assign a role to a user since it is possible through the GUI. I have not however been able to find any documentation about the method and whether or not it is public. The Voyager documention on roles and permissions seems pretty much dedicated to permissions and does not provide much information about roles.
    
    My next step will be to dig through the Voyager source code.

    I have this exact question. I have a Laravel project with Voyager that is connected to an Active Directory with approximately 5000 active users. Assigning roles through the GUI is not feasible.

    Unfortunately it seems that the spatie/laravel-permission package is incompatible with Voyager because it has an assignRole() method that works perfectly for assigning a role based on AD group membership when the user logs in.

    There has to be a method within Voyager to assign a role to a user since it is possible through the GUI. I have not however been able to find any documentation about the method and whether or not it is public. The Voyager documention on roles and permissions seems pretty much dedicated to permissions and does not provide much information about roles.

    My next step will be to dig through the Voyager source code.

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
tnylea
Cheers Friend!

I'm Tony, the creator of this site. I'm trying to increase my twitter following. Want to follow me?

Follow @tnylea If not, no worries :)