index output in rule expression

Team,

I have a below output from my expression and when i am using dot notation as local!data.totalCount i can filter output , however i am not able to do the same for local!data.name

how to do it ? tried indexing also but data coming null


[startIndex=1, batchSize=-1, sort=, totalCount=1, data=[givenname:abc,sn:def,mail:abc2@cde.com,samaccountname:abc]

i want to index , name , sname and mail for my grid

  Discussion posts and replies are publicly visible

Parents Reply
  • Are you expecting ri!user to contain a list of users, or would it only be a single user? If it's only a single user, then I'd recommend removing the a!forEach() and directly querying the data - then you should be able to index the data correctly.

    If you are expecting an array of users, is it possible to reconstruct your search filter to search for multiple users at once? I must confess, I am not an expert at LDAP queries, so I'm not sure if this is possible. However, I'd recommend thinking of ways to return this data in a single query. If you use a!forEach() with ldapsearch() it will perform the search invidually for each item in the list which may lead to poor performance.

Children
No Data