{% extends "shared/base.html" %} {% block title %}{{ 'Edit Employee' if employee else 'Add Employee' }} · Seva Setu{% endblock %} {% block content %}
← Employee Master

{{ 'Edit Employee' if employee else 'Add Employee' }}

HR attributes, reporting hierarchy, authentication method and application access.

Employee information

{% if employee %}{% endif %}

Authentication

Choose how this user signs in to Seva Setu.

{% if employee and employee.user.sso_subject %}SSO identity linked{% endif %}
{% set auth_method = employee.user.auth_method if employee else 'SSO' %}
Used only when Local ID & password is selected.
Minimum 8 characters. Leave blank on edit to keep the existing local password.
{% if employee and employee.user.auth_method == 'SSO' %}
Use this only if the employee's Microsoft Entra account has changed and the next successful SSO login should bind again by official email.
{% endif %}

Roles & access

Menus and permissions are inherited from the selected roles.

{% set current_role_ids = employee.user.roles|map(attribute='id')|list if employee else [] %} {% for role in roles %}{% endfor %}
{% endblock %}