Title: Role Assignment
Last modified: August 19, 2016

---

# Role Assignment

 *  [fe3n1x](https://wordpress.org/support/users/fe3n1x/)
 * (@fe3n1x)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/role-assignment/)
 * Hi. I am in the process of making a Clan website and have implemented the Leaguemanager
   plugin. I need to assign one person to administrate this plugin but nothing else.
   How do i do this?
 * Many Thanks in advance
 * Fe3n1x

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/role-assignment/#post-1207105)
 * Even with Role Manager plugin I can’t see how you can isolate just one person
   to one plugin.
 *  [Steven](https://wordpress.org/support/users/spstieng/)
 * (@spstieng)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/role-assignment/#post-1207360)
 * That’s “easy”.
    Well, at least crating the roles.
 * In the plugin, add the following:
 *     ```
       //Add role
       add_role('leagueAdmin',__('League Manager'));
   
       // Add capability
       $role = get_role('leagueAdmin');
       $role -> add_cap('leagueAdmin');
       $role -> add_cap ('read'); // If you want the user to be able to login backend.
       ```
   
 * With this role, the user can only manage your plugin, and nothing else.
 * That was the easy part. Now you need to assign this role to a person.
    You can
   either do this by using the plugin Role Manager. Or you can do this programatically
   somehow. But I don’t know how to.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Role Assignment’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Steven](https://wordpress.org/support/users/spstieng/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/role-assignment/#post-1207360)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
