How to Determine The Order of the Directories for Crowd in the Database?
Purpose
To determine the order of the User Directories (external user management) when Crowd admin user cannot login with the correct credentials. This is extremely useful for recovering administrator rights from the Crowd Internal Directory - Restoring Passwords To Recover Admin User Rights via Database with directories reordering.
Solution
Execute the following SQL query against the Crowd database via database client.
SELECT m.id, m.application_id, a.application_name, m.directory_id, m.allow_all, m.list_index, d.directory_name, d.directory_type
FROM cwd_app_dir_mapping m
JOIN cwd_directory d ON m.directory_id = d.id
JOIN cwd_application a ON m.application_id = a.id
WHERE a.application_type = 'CROWD';
Recover Administrator Rights: Make sure that the list_index
for Crowd Internal Directory is 0
and the remaining directories are in ascending order (1
, 2
, 3
, ...).
Priority | list_index |
---|---|
1st | 0 |
2nd | 1 |
3rd | 2 |