Skip to content

Employee role is assigned to the user on Employee creation #3358

@elhananjair

Description

@elhananjair

Information about bug

When creating an employee and system user, I follow these steps: I create the employee first, and then I create a user, and then from the employee settings, I link the employee with the created user. The problem I am facing is that I have already created a custom role that includes HRMS-related things, and I don't want the system to assign the employee role that the employee created. The reason is that if an employee role is assigned, there are additional components of HRMS visible to the employee, which I don't want, since I have already created a custom role that restricts access to HR components and features.

Another problem is, the other employees with a custom role applied to them (but have not been assigned an employee role) will be reassigned with an employee role. I manually revoke that role by going to the user list and selecting employees manually.

Module

HR

Version

erpnext 15.61.0
frappe 15.68.1
hrms 15.45.1

Installation method

docker

Relevant log output / Stack trace / Full Error Message.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions