Title: User List "Add User" Button Missing and Role Permissions Not Visible on Production Server

Hello Frappe Community,

I am facing an issue after deploying my custom Frappe application to a production server.

Environment

  • Frappe Framework: v15

  • Custom App deployed via Git

  • Local Environment: Working correctly

  • Production Server: Issue occurs

Issue Description

I developed and tested my application locally, and everything works as expected. The User List page shows the Add User button, and I can manage user roles and permissions without any issues.

However, after pushing my code to Git and deploying it on the production server:

  1. The “Add User” button is not visible in the User List.

  2. I receive “Not Permitted” or permission-related issues when trying to manage users.

  3. The Roles and Permissions section is not visible.

  4. The role assignment table is hidden, so I cannot assign roles to users.

  5. The same user account has full access in the local environment but restricted access on the production server.

What I Have Checked

  • Code is identical between local and production.

  • Bench migrate has been executed.

  • Application is installed on the production site.

  • User has System Manager role (verified from the database).

  • Cleared cache and restarted bench services.

Questions

  1. What could cause the User List “Add User” button to disappear only on the production server?

  2. Could this be related to Role Permissions Manager, User Permissions, or custom scripts?

  3. Are there any database migrations or permission sync commands that should be run after deployment?

  4. Is there a way to compare role permissions between local and production environments?

Any guidance would be greatly appreciated.

Thank you.