Anonymous_User Absent Member.
Absent Member.
465 views

UserApp REST Services and Custom DAL entity


I'm using REST Services of UserApp and want to query for user
attributes.
From the docs
https://www.netiq.com/documentation/idm45/agpro/data/bmik1gr.html
I was able to successfully start using the service, I'm using querying
the service using following format:
identities/{Identity Id}/{attribute ID}

I see that REST Identities Service uses DAL to retrieve the user
attributes.
Since we already defined a custom entity in DAL to represent our users,
how can I use this custom entity in REST Services instead of the default
'User' DAL entity?


--
2qkv8
------------------------------------------------------------------------
2qkv8's Profile: https://forums.netiq.com/member.php?userid=10246
View this thread: https://forums.netiq.com/showthread.php?t=55542

Labels (1)
0 Likes
3 Replies
charakopidis Absent Member.
Absent Member.

Re: UserApp REST Services and Custom DAL entity


Hi,

as far as i know, you need the vdx web service to have access to the
DAL. VDX is soap not rest.

you can find detailed information about the service in the documentation
https://www.netiq.com/documentation/idm45/agpro/data/bat9n8a.html


Regards

Zisis


--
charakopidis
------------------------------------------------------------------------
charakopidis's Profile: https://forums.netiq.com/member.php?userid=829
View this thread: https://forums.netiq.com/showthread.php?t=55542

0 Likes
Highlighted
Anonymous_User Absent Member.
Absent Member.

Re: UserApp REST Services and Custom DAL entity


Hi Zisis,
you are probably rigth, as REST is calling IDM web services to receive
data - the problem is there I cannot find any possibility to configure
what entity type is being queried through the web service.

Could you please expand on your idea about VDX in this context?


--
2qkv8
------------------------------------------------------------------------
2qkv8's Profile: https://forums.netiq.com/member.php?userid=10246
View this thread: https://forums.netiq.com/showthread.php?t=55542

0 Likes
Knowledge Partner
Knowledge Partner

Re: UserApp REST Services and Custom DAL entity

If you read through the code in the example at : https://www.netiq.com/documentation/idm45/agpro/data/bat9obn.html

You will find this snippet half way down :
public void getAttributeTestCase()
throws Exception
{
System.out.println("\nCalling getAttributeTestCase() test
case");

try
{
IRemoteVdx vdxStub = getVdxStub(url, username, password);

String recipient =
"cn=jmiller,ou=users,ou=idmsample,o=netiq";
String entity = "user";
for(int attributeIndex = 0; attributeIndex <
userAttributes.length; attributeIndex++)
{
//
// Now, get the values for each attribute from the VDX
layer
Attribute attributeData =
vdxStub.getAttribute(recipient,
entity, userAttributes[attributeIndex]);
//
// Determine how to handle the return data
examineAttributeData(attributeData,
userAttributes[attributeIndex]);
}
}
catch(VdxServiceException error)
{
System.out.println(error.getReason() );
throw new Exception(error.getReason() );
}
catch(RemoteException error)
{
System.out.println(error.getMessage() );
throw new Exception(error.getMessage() );
}
}


As I understand it String entity = "user"; is where they defined the entity here.

If you want to go the rest way I think the only option is to create workflows with the queries you want and access those workflows with rest. That way you can use any entity you want.
See: https://www.netiq.com/documentation/idm45/agpro/data/bh8qaw9.html
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.