+
+ {users.length} matching {users.length === 1 ? "user" : "users"}
+
+ {users.length === 0 ? (
+
+ No matching user. New staff must sign in to CDA first so their account
+ is registered.
+
+ ) : (
+
+
+ {alreadyAssigned
+ ? `This user is already assigned to ${office}.`
+ : "Adds the required All Users role in this office. Then choose read-only, read/write, or custom roles on the role page. Existing office roles are kept."}
+
+
+
+ Sign in with a CWMS User Administrator account to review staff and manage
+ office-scoped role assignments.
+
+
+
+ );
+ }
+
+ return (
+
+
+
+ CDA
+ User administrator
+
+
+
User Roles
+
+ The signed-in profile determines which offices appear. CDA and the CWMS
+ database enforce whether an administrator may grant or remove each role.
+
+
+
+ Review every active user in an authorized office and maintain the roles that
+ control their CWMS access.
+
+
+ ) : users.length === 0 ? (
+
+ CDA did not return any users with active privileges in this office.
+
+ ) : visibleUsers.length === 0 ? (
+
+ Try a different name, email, user ID, or role.
+
+ ) : (
+ <>
+
+
+ Manage reusable user groups and office-scoped access from one place. Your
+ signed-in CWMS permissions determine which information and actions are
+ available.
+
+