# Get accounts query

**URL:** <https://developer.sailpoint.com/discuss/t/get-accounts-query/171982>\
**Category:** SHF Discussion and Questions\
**Tags:** workflows, sailpoint-identity-security\
**Created:** [August 21, 2025, 12:18pm UTC](https://developer.sailpoint.com/discuss/t/get-accounts-query/171982 "2025-08-21T12:18:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nidhipriya](https://avatars.discourse-cdn.com/v4/letter/n/958977/32.png) [@nidhipriya](https://developer.sailpoint.com/discuss/u/nidhipriya)\
**Post date:** [August 21, 2025, 12:18pm UTC](https://developer.sailpoint.com/discuss/t/get-accounts-query/171982/1 "2025-08-21T12:18:52Z")

</div>

> Hi All,  
> I am trying to fetch account attributes from get accounts action with below expression in a workflow  
> $.getAccounts.accounts[\*].attributes.msDS-xyz  
> but its not giving any value.  
> Can someone help with this?

## 

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/e/5/e5d23b6e475e67d478037399a55f4be159b9437e.png)

---

<div class="post-metadata">

**Author:** ![sidharth\_tarlapally](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sidharth_tarlapally/32/26178_2.png) [@sidharth\_tarlapally](https://developer.sailpoint.com/discuss/u/sidharth_tarlapally)\
**Post date:** [August 21, 2025, 12:22pm UTC](https://developer.sailpoint.com/discuss/t/get-accounts-query/171982/2 "2025-08-21T12:22:48Z")

</div>

@nidhipriya ,

I see you are using value , it should be `{{$.getAccounts.accounts[*].attributes.msDS-xyz}}`

---

<div class="post-metadata">

**Author:** ![nidhipriya](https://avatars.discourse-cdn.com/v4/letter/n/958977/32.png) [@nidhipriya](https://developer.sailpoint.com/discuss/u/nidhipriya)\
**Post date:** [August 21, 2025, 12:23pm UTC](https://developer.sailpoint.com/discuss/t/get-accounts-query/171982/3 "2025-08-21T12:23:29Z")

</div>

yes.. i tried bothways. but neither is wrking

---

<div class="post-metadata">

**Author:** ![sidharth\_tarlapally](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sidharth_tarlapally/32/26178_2.png) [@sidharth\_tarlapally](https://developer.sailpoint.com/discuss/u/sidharth_tarlapally)\
**Post date:** [August 21, 2025, 12:24pm UTC](https://developer.sailpoint.com/discuss/t/get-accounts-query/171982/4 "2025-08-21T12:24:40Z")

</div>

@nidhipriya Can you share the execution file ?

---

<div class="post-metadata">

**Author:** ![Kyle\_R](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kyle_r/32/6498_2.png) [@Kyle\_R](https://developer.sailpoint.com/discuss/u/Kyle_R)\
**Post date:** [September 2, 2025, 6:13pm UTC](https://developer.sailpoint.com/discuss/t/get-accounts-query/171982/5 "2025-09-02T18:13:48Z")

</div>

@nidhipriya Were you able to resolve this issue? If so, do you mind sharing what the solution was? Thanks.

---

<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:** [November 1, 2025, 6:14pm UTC](https://developer.sailpoint.com/discuss/t/get-accounts-query/171982/6 "2025-11-01T18:14:42Z")

</div>

Closed on November 1, 2025, 6:14pm UTC

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