shocko
New Member.
2199 views

Scripting - Finding users based on Virtual Attribute Values


Guys, we use scripting extensively against our DRA 9.0.3 instance.
Often, I have to batch update virtual attributes and I use the DRA
ADSIprovider for this. One thing I haven't been able to figure out
though is how to simulate the same search that is performed when I use
the advanced search options in the UI. For example, how might I search
for all users where a given VA matches a certain value from a scripting
perspective (using powershell or VBScript)? I know scripting is not
supported but just wondering if there were any examples of same to point
me in the right direction.Basically, we maintain a tonne of company
specific info in Virtual attributes. Often I need to do the following:


Find all users that have VA-A set to X and change the value of VA-A to
Y


Currently, I do this as follows:

Run a query with the Windows LDAP provider directly on DRAs ADLDS
instance


Pull back all objects of type DRAUser that match my VA value


Use the name attribute each object to match the GUID of the
corresponding user in AD


Update using the OnePoint ADSI provider and the users AD DN


This is a lot of work! There has to be a more efficient way of doing
this 


--
shocko
------------------------------------------------------------------------
shocko's Profile: https://forums.netiq.com/member.php?userid=5104
View this thread: https://forums.netiq.com/showthread.php?t=57544

If my post was helpful please award me Kudos! or Points 🙂
0 Likes
1 Reply
AutomaticReply Absent Member.
Absent Member.

Re: Scripting - Finding users based on Virtual Attribute Values

shocko,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue
is urgent or not getting a response, you might try one of the following options:

- Visit https://www.microfocus.com/support-and-services and search the knowledgebase and/or check
all the other self support options and support programs available.
- Open a service request: https://www.microfocus.com/support
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.microfocus.com)
- You might consider hiring a local partner to assist you.
https://www.partnernetprogram.com/partnerfinder/find.html

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.microfocus.com/faq.php

Sometimes this automatic posting will alert someone that can respond.

If this is a reply to a duplicate posting or otherwise posted in error, please
ignore and accept our apologies and rest assured we will issue a stern reprimand
to our posting bot.

Good luck!

Your Micro Focus Forums Team
http://forums.microfocus.com



0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.