Write a user story for selecting roles for users on a "manage members" screen in a web…
- User
Write a user story for selecting roles for users on a "manage members" screen in a web application. Only one role should be selectable per user and only users with the admin permission can assign new roles. The user's own role cannot be changed. The screen should only be accessible by admin users. The available roles for the active tenant should be retrieved from the API
- Assistant
As an admin user, I want to be able to assign roles to other users on the "manage members" screen in the web application so that I can manage the permissions and responsibilities of each user. I should only be able to select one role per user and I should not be able to change my own role. The available roles for the active tenant should be retrieved from the API. I should only be able to access this screen if I have the admin permission. This will allow me to effectively manage the members of the organization and ensure that each user has the appropriate level of access and responsibility.
- User
Please write some acceptance criteria for the user story
- Assistant
- Only users with the admin permission can access the "manage members" screen.
- The screen displays a list of all users in the active tenant, including their name and current role.
- The user's own name and role are displayed, but the role cannot be changed.
- The admin user can select a new role for each user from a list of available roles retrieved from the API.
- Only one role can be selected per user.
- The selected role is saved and updated for the user in the application.
- The list of users and their roles is properly refreshed to reflect the updated role assignments.
- Any errors or messages that occur during the role assignment process are properly displayed to the admin user.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.