In my canvas app, I am calling a cloudflow named 'Absence Request'. This is a really simple flow which sends an email with details of a form which has been filled in.
When the app runs and is shared with users and is tested in the Development environment, the flow triggers and the email gets generated without error.
However, when the solution is exported and imported to the production environment, when this same process is done again, the following error occurs when trying to run the flow command:
The user with ID (ID) has not been assigned the any roles.
From what I can see, all of the settings are the same in the dev environment and the production one.
The users who are accessing the app are all part of a security group called 'Teachers'. The app is shared with them, and they have 'run only' access to the flow, just as in the development environment.
Can anyone help as to why this error occurs in production?