Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3327

Query to Identity Centre for User Attributes

$
0
0

Hi,

I need create a job to query IDStore and then export data to csv in IDM 7.2 - the report should have below fields --

userID, Firstname,  Lastname,  email,  user_dcu,  company_code,  department,  location_city,  location_address,  manager id,  manager_firstname,  manager_lastname,  manager_email.

 

I am able to find some of the attributes with below query <not tested - may be you can rectify also if you find some> but stuck for some of the attributes  like location_address, manager id, manager_firstname, manager_lastname and manager_email.

 

Can anybody help me with a query for this ?

 

select

c.searchvalue as mskeyvalue

,div.SearchValue as division

,coalesce(dcu1.searchvalue,'') as dcu

,coalesce(dcu2.searchvalue,'') as dcu_name

,coalesce(m.avalue,'') as mail

from idmv_value_basic_active a with(nolock)

inner join idmv_value_basic_active b with(nolock)

on b.mskey = a.mskey

and b.attrname = 'P_TYPE'

left outer join idmv_value_basic_active div with(nolock)

on div.mskey = a.mskey

and div.attrname = 'P_DIVISION'

inner join idmv_value_basic_active c with(nolock)

on c.mskey = b.mskey

and c.attrname = 'MSKEYVALUE'

left outer join idmv_value_basic_active m with(nolock)

on m.mskey = b.mskey

and m.attrname = 'MX_MAIL_PRIMARY'

left outer join idmv_link_basic_active dcu with(nolock)

on dcu.mcthismskey = a.mskey

and dcu.mcattrname = 'MXREF_COMPANY'

left outer join idmv_value_basic_active dcu1 with(nolock)

on dcu1.mskey = dcu.mcothermskey

and dcu1.attrname = 'C_DCU'

left outer join idmv_value_basic_active dcu2 with(nolock)

on dcu2.mskey = dcu.mcothermskey

and dcu2.attrname = 'DISPLAYNAME'

 

 

where a.attrname =  'MX_ENTRYTYPE'

and a.searchvalue = 'MX_PERSON'


Viewing all articles
Browse latest Browse all 3327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>