-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
None
In the table cwd_user, there should be no rows where the external_id is repeated for the same directory_id. Said in another way, the external_id should be unique for the same directory_id.
To avoid this from causing problems, we should add a unique constraint at a database level in the table cwd_user.
When two users share external_id and directory_id, the user is not able to login or update new information from the external user directory. Those actions will fail with the following error:
org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2 at org.springframework.orm.hibernate.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:590) at org.springframework.orm.hibernate.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:353) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:375) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:337) at com.atlassian.crowd.embedded.hibernate2.HibernateUserDao.internalFindUserByExternalId(HibernateUserDao.java:501) at com.atlassian.crowd.embedded.hibernate2.HibernateUserDao.internalFindByExternalId(HibernateUserDao.java:473) at com.atlassian.crowd.embedded.hibernate2.HibernateUserDao.findByExternalId(HibernateUserDao.java:449) at com.atlassian.confluence.user.crowd.CachedCrowdUserDao.findByExternalId(CachedCrowdUserDao.java:164) ...
This also affects embedded Crowd.
- causes
-
CWD-5182 Sync Failures due to duplicated External IDs
- Closed
- is related to
-
CONFSERVER-35047 Confluence user synchronisation create duplicated user account after user rename in the remote repository
- Closed
-
CWD-3984 Rename user in external directory create new user with same external_id
- Closed
- relates to
-
CONFSERVER-22515 After change an username in Active Directory and resynchronize, there are two accounts showing in Confluence (the old and the new username).
- Closed
-
CWD-1133 Provide ability to rename users in Crowd.
- Closed
- is blocked by
-
KRAK-615 Loading...
- links to