A database switched to a fallback server includes the database user information in sysusers. However, the mapping between database users and SQL Server login IDs is not maintained when the database is enrolled and/or activated on the fallback server. This problem can be handled by maintaining identical login IDs (identical name and suid columns in the syslogins table) in both SQL Servers. Add the same login IDs in the same order in both SQL Servers.
Alternately, the system stored procedure sp_change_users_login could be used to fix the mapping between sysusers and syslogins. This, however, requires another fix after the database has been switched back to the primary server.