How to extract List of Users Vs Groups from Content Store (c8 . Oracle 10g )
Connect to Content Store Schema using Toad or SQL Navigator and execute below SQL
SELECT v_group_user.user_id, v_user.ldap_id,
LTRIM (RTRIM (UPPER (v_user.ldap_id))), v_group.cmid,
v_group.name_en name_en, v_group.name_fr name_fr, v_group.created,
v_group.modified, v_group.disabled, v_user.last_name,
v_user.first_name, v_user.email
FROM dba_group_info v_group,
(SELECT cmid GROUP_ID, refcmid user_id
FROM ops$cgs.cmreford1) v_group_user,
(SELECT c33.cmid user_id, UPPER (c33.NAME) ldap_id,
c1.surname last_name, c1.givenname first_name,
c1.email email
FROM cmobjprops1 c1, cmobjprops33 c33
WHERE c33.cmid = c1.cmid(+)
UNION
SELECT cmid user_id, UPPER (name_en) ldap_id, name_en last_name,
'' first_name, '' email
FROM dba_group_info) v_user
WHERE v_group.cmid = v_group_user.GROUP_ID
AND v_group_user.user_id = v_user.user_id(+)
ORDER BY 1, 3
SELECT v_group_user.user_id, v_user.ldap_id,
LTRIM (RTRIM (UPPER (v_user.ldap_id))), v_group.cmid,
v_group.name_en name_en, v_group.name_fr name_fr, v_group.created,
v_group.modified, v_group.disabled, v_user.last_name,
v_user.first_name, v_user.email
FROM dba_group_info v_group,
(SELECT cmid GROUP_ID, refcmid user_id
FROM ops$cgs.cmreford1) v_group_user,
(SELECT c33.cmid user_id, UPPER (c33.NAME) ldap_id,
c1.surname last_name, c1.givenname first_name,
c1.email email
FROM cmobjprops1 c1, cmobjprops33 c33
WHERE c33.cmid = c1.cmid(+)
UNION
SELECT cmid user_id, UPPER (name_en) ldap_id, name_en last_name,
'' first_name, '' email
FROM dba_group_info) v_user
WHERE v_group.cmid = v_group_user.GROUP_ID
AND v_group_user.user_id = v_user.user_id(+)
ORDER BY 1, 3
You have the same script for SQL sever (Cognos 8)
ReplyDeleteHi Atul,
ReplyDeleteI tried above query , however it did not work. I was not able to find the table dba_group_info.Could you please let me know
Naveen,
ReplyDeleteWhat exactly you are looking for ? I couldn't understand your question.
Arul