Your issue is caused by the interaction between SAP’s password reset mechanism and Fiori’s session management, specifically how the “User must change password” flag affects authorization checks. Here’s the complete resolution:
SU01 Password Reset Procedure:
When your helpdesk resets passwords in transaction SU01, they need to follow this modified procedure:
- Navigate to SU01 > Change user > Logon Data tab
- Click “New Password” and enter the temporary password
- Critical step: UNCHECK the “User must change password at next logon” box
- Save the user changes
- Run transaction SU56 or use menu Environment > Reset Authorization Buffer to clear cached authorizations
- Communicate the temporary password to the user
The “User must change password at next logon” flag puts the user in a restricted state where they can authenticate but have limited system access until they complete the password change. SAP GUI detects this state and automatically prompts for password change during logon. However, Fiori apps don’t have this built-in password change dialog, so they interpret the restricted state as an authorization failure, displaying “user locked” errors.
Fiori App Session Management:
Fiori apps maintain session tokens that include user authorization data. After a password reset, these tokens can become stale or invalid. The time and attendance app specifically checks user status before allowing timesheet submissions. If the backend still has cached data indicating the user is in password-change-required state, the app blocks access.
To resolve existing locked sessions:
- Have affected users log out of all SAP sessions (GUI and Fiori)
- Clear browser cache, cookies, and local storage (important for Fiori session tokens)
- In SAP, run transaction SM04 to verify no active sessions exist for the user
- If sessions persist, use transaction AL08 to terminate them
- Reset the user’s authorization buffer using SU01 > Environment > Reset Authorization Buffer
Automated Solution for Helpdesk:
Create a custom transaction or script that wraps the password reset process and automatically performs all necessary cleanup steps. The script should:
- Reset password via BAPI_USER_CHANGE
- Ensure password change flag is not set
- Call BAPI_USER_ACTGROUP_RESET to clear authorization buffer
- Terminate any active sessions for the user
- Send notification to user with new password
This eliminates manual steps and ensures consistency across all helpdesk password resets.
Alternative Approach - Self-Service:
Since you mentioned that self-service password changes through the portal work without issues, consider expanding use of the self-service option. Implement a “forgot password” flow that:
- Sends a secure reset link to the user’s registered email
- Allows users to set their own new password
- Automatically handles all backend authorization updates
This reduces helpdesk workload and eliminates the authorization synchronization issues entirely. For users who must use helpdesk (new employees, locked accounts), train helpdesk to follow the modified SU01 procedure above.
Payroll Risk Mitigation:
For your immediate payroll processing concern, implement a daily check before payroll cutoff:
- Run a report to identify users with recent password resets (last 7 days)
- Verify these users can access the time and attendance Fiori app
- For any failures, proactively perform the unlock procedure before payroll processing begins
This prevents last-minute payroll delays due to undetected authorization issues from password resets.
This draft is based on general SAP S/4HANA knowledge. It has not been verified against your specific version and environment. Practitioners: verify the steps and share your experience below.