Can't reference the Cube ID number

Hi,
I am trying to sync the user’s identity number to Active Directory for downstream activities. However, the UID is coming out as the account Name rather than the ID.
I can’t seem to be able to reference the ID directly. Any help is much appreciated, and apologies if this is a facepalm query.

image

This is what I want to reference:
ID - 6e864d3f2800432f83cfcbc47c5320d8

But this is the UID:
ACCOUNT NAME - Test Adbury

This is the schema:

Thanks
Phil

1 Like

Have you tried using nativeIdentity ?

1 Like

Good idea, but:
image

1 Like

My understanding is that ID is internal to ISC, you’d have to create an identity attribute and use a static transform to populate it with the nativeIdentity ID, then you can use that to pass to AD.

1 Like

Use a static transform and grab the Id using the Identity Class:

identity.getId();
identity.getName();
Identity.getAttribute(" ");

Best!

2 Likes

Using Beanshell script and a Before provisioningRule?
Rather than JSON and inside the transform well?

No ,

So the static transforms have Velocity as the render for it.
So we can use it to grab the information from the Object itself :

{
    "type": "static",
    "attributes": {
        "value": "#set($id = $identity.getId())$id"
    }
}

Of course that is a example and it maybe not working at all, but thats the idea.

1 Like

No, that worked perfectly.
Thank you

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.