# Can't reference the Cube ID number

**URL:** <https://developer.sailpoint.com/discuss/t/cant-reference-the-cube-id-number/57443>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud\
**Created:** [May 21, 2024, 2:29pm UTC](https://developer.sailpoint.com/discuss/t/cant-reference-the-cube-id-number/57443 "2024-05-21T14:29:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhilRawlings1](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/philrawlings1/32/37266_2.png) [@PhilRawlings1](https://developer.sailpoint.com/discuss/u/PhilRawlings1)\
**Post date:** [May 21, 2024, 2:29pm UTC](https://developer.sailpoint.com/discuss/t/cant-reference-the-cube-id-number/57443/1 "2024-05-21T14:29:28Z")

</div>

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](https://global.discourse-cdn.com/sailpoint/original/2X/b/b4dde881eb0080305891036c7ad60483e0bf28a1.png)

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

But this is the UID:  
ACCOUNT NAME - Test Adbury

This is the schema:

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/8/88f6b2da0c8f9243797a91852484c90dd5f29a30.png)

Thanks  
Phil

---

<div class="post-metadata">

**Author:** ![ashutosh08](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ashutosh08/32/11459_2.png) [@ashutosh08](https://developer.sailpoint.com/discuss/u/ashutosh08)\
**Post date:** [May 21, 2024, 2:51pm UTC](https://developer.sailpoint.com/discuss/t/cant-reference-the-cube-id-number/57443/2 "2024-05-21T14:51:03Z")

</div>

Have you tried using **nativeIdentity**?

---

<div class="post-metadata">

**Author:** ![PhilRawlings1](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/philrawlings1/32/37266_2.png) [@PhilRawlings1](https://developer.sailpoint.com/discuss/u/PhilRawlings1)\
**Post date:** [May 21, 2024, 2:55pm UTC](https://developer.sailpoint.com/discuss/t/cant-reference-the-cube-id-number/57443/3 "2024-05-21T14:55:04Z")

</div>

Good idea, but:  
 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/1/1046079b119a599951005613c59f3ab310c0d592.png)

---

<div class="post-metadata">

**Author:** ![vkashat](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/vkashat/32/9721_2.png) [@vkashat](https://developer.sailpoint.com/discuss/u/vkashat)\
**Post date:** [May 21, 2024, 3:16pm UTC](https://developer.sailpoint.com/discuss/t/cant-reference-the-cube-id-number/57443/4 "2024-05-21T15:16:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ipobeidi](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ipobeidi/32/16000_2.png) [@ipobeidi](https://developer.sailpoint.com/discuss/u/ipobeidi)\
**Post date:** [May 21, 2024, 3:19pm UTC](https://developer.sailpoint.com/discuss/t/cant-reference-the-cube-id-number/57443/5 "2024-05-21T15:19:43Z")

</div>

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

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

```

Best!

---

<div class="post-metadata">

**Author:** ![PhilRawlings1](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/philrawlings1/32/37266_2.png) [@PhilRawlings1](https://developer.sailpoint.com/discuss/u/PhilRawlings1)\
**Post date:** [May 21, 2024, 3:39pm UTC](https://developer.sailpoint.com/discuss/t/cant-reference-the-cube-id-number/57443/6 "2024-05-21T15:39:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ipobeidi](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ipobeidi/32/16000_2.png) [@ipobeidi](https://developer.sailpoint.com/discuss/u/ipobeidi)\
**Post date:** [May 21, 2024, 3:43pm UTC](https://developer.sailpoint.com/discuss/t/cant-reference-the-cube-id-number/57443/7 "2024-05-21T15:43:09Z")

</div>

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 :

```auto
{
    "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.

---

<div class="post-metadata">

**Author:** ![PhilRawlings1](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/philrawlings1/32/37266_2.png) [@PhilRawlings1](https://developer.sailpoint.com/discuss/u/PhilRawlings1)\
**Post date:** [May 21, 2024, 3:48pm UTC](https://developer.sailpoint.com/discuss/t/cant-reference-the-cube-id-number/57443/8 "2024-05-21T15:48:57Z")

</div>

No, that worked perfectly.  
Thank you

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 20, 2024, 3:49pm UTC](https://developer.sailpoint.com/discuss/t/cant-reference-the-cube-id-number/57443/9 "2024-07-20T15:49:14Z")

</div>

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