New and Improved 3.13 Beta. Highlights: Shareable filters and dashboards and lots of other goodies. Any feedback can be raised as JIRA issues in the JIRA project.
Issue Details (XML | Word | Printable)

Key: JRA-12528
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Andreas Knecht [Atlassian]
Reporter: Anne Diget
Votes: 1
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
JIRA

Can't remove an user from a custom project role

Created: 10/Apr/07 05:07 AM   Updated: 18/Feb/08 11:01 PM
Component/s: Roles
Affects Version/s: 3.7.4
Fix Version/s: 3.9.1

Time Tracking:
Not Specified

Issue Links:
Reference

Participants: Andreas Knecht [Atlassian], Anne Diget and Tim Pettersen [Atlassian]
Since last comment: 1 year, 14 weeks, 5 days ago
Resolution Date: 17/May/07 08:51 PM
Labels:


 Description  « Hide
"Responsable" is a custom project role in our application.
A global administrator of jira cannot remove an user in the dialog "Assign Users to Project Role: responsable".
You get the error: You can not remove a user/group that will result in completely removing yourself from this role.
Thank's for your help,
Anne

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Tim Pettersen [Atlassian] added a comment - 11/Apr/07 01:14 AM
Hi Anne, thanks for reporting this.

Would you mind telling us:

  • which page you saw the error on?
  • how you were attempting to remove the user?

I managed to reproduce a similar problem (except no error message was displayed) using the following steps:

  1. Sign in as an Administrator
  2. Create a new project role, Responsable.
  3. Assign the Administer Projects permission to the Responsable role for some permission scheme.
  4. Edit a user who doesn't have the Administer Projects permission and add the Responsable project role for a project that is using the permission scheme that you just modified.
  5. Edit the user again and attempt to remove the Responsable project role you just granted.

The role will not be removed from the user and the error "You can not remove a user/group that will result in completely removing yourself from this role." will be returned by the ProjectRoleService - but no error will be displayed on the View Project Roles page.

Until we can get this fixed (the roots of the problem look quite complex) I can recommend the following workaround:

  1. Temporarily remove the Administer Projects permission from the Responsable role.
  2. Remove the user's membership from the Responsable role.
  3. Re-add the Administer Projects permission to the Responsable role.

If you don't want to muck around with Responsable's permissions, you'll have to get an administrator who derives their administration priviliges from a different group/role to remove the user's membership.

Hope this helps!

cheers,
Tim


Anne Diget added a comment - 11/Apr/07 04:05 AM
yes, thank's a lot!
Anne

Andreas Knecht [Atlassian] added a comment - 17/May/07 08:51 PM
The bug has now been fixed, such that a global administrator in JIRA is able to remove any user from a project role (even if that's the last user with the Administer Projects permission in a particular role).

Note that for users without global admin rights, the error "You can not remove a user/group that will result in completely removing yourself from this role." will still be shown!

The EditUserProjectRoles action now also correctly displays any errors when editing role membership.