# SailPoint IdentityNow PowerShell Module

**URL:** <https://developer.sailpoint.com/discuss/t/sailpoint-identitynow-powershell-module/196>\
**Category:** SHF Community Knowledge Base\
**Created:** [March 1, 2021, 11:25pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-identitynow-powershell-module/196 "2021-03-01T23:25:59Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![darrenjrobinson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/darrenjrobinson/32/2854_2.png) [@darrenjrobinson](https://developer.sailpoint.com/discuss/u/darrenjrobinson)\
**Post date:** [April 6, 2024, 9:51am UTC](https://developer.sailpoint.com/discuss/t/sailpoint-identitynow-powershell-module/196/21 "2024-04-06T09:51:02Z")

</div>

looks like you haven’t used the correct accountID for the associated account. Otherwise you’d have got 1 match and the result.  
Check to make sure you’re using the correct attribute (accountID) from the first query.

---

<div class="post-metadata">

**Author:** ![aaronknoph](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@aaronknoph](https://developer.sailpoint.com/discuss/u/aaronknoph)\
**Post date:** [April 17, 2024, 7:01pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-identitynow-powershell-module/196/22 "2024-04-17T19:01:12Z")

</div>

Hi Darren,

We’re making great progress, but I have a question we’re having a harder time with. Is it possible to see the assignment criteria of the role so that we can see if someone belongs to a role?

In other words, how can we use the membership of a role to see if it matches a user’s attributes?

---

<div class="post-metadata">

**Author:** ![darrenjrobinson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/darrenjrobinson/32/2854_2.png) [@darrenjrobinson](https://developer.sailpoint.com/discuss/u/darrenjrobinson)\
**Post date:** [April 18, 2024, 4:00am UTC](https://developer.sailpoint.com/discuss/t/sailpoint-identitynow-powershell-module/196/23 "2024-04-18T04:00:11Z")

</div>

Hey Aaron, sure thing.

You can get the criteria of the role via the roles membership criteria.  
Compare that to the accounts values for the criteria to see if they would fulfil it.

```auto
$myRole = Get-IdentityNowRole | where-object {$_.name -eq "API Role"} | Select-Object
$myRole | FL
$myRole.membership.criteria | FL 

```

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

---

<div class="post-metadata">

**Author:** ![aaronknoph](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@aaronknoph](https://developer.sailpoint.com/discuss/u/aaronknoph)\
**Post date:** [April 29, 2024, 1:35pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-identitynow-powershell-module/196/26 "2024-04-29T13:35:06Z")

</div>

Hi Darren,

Yep. We actually figured it out, but your post does validate that we did it correctly. Thank you!!

Next question. We are able to get entitlement IDs, but we have a source that has over 10,000 entitlements. How can we get them all loaded into a variable?

Our SAP source has 13,000 entitlements. How can we page those results to get all of them? Any advice here? Or is there a way to get the entitlements that an account has directly?

---

<div class="post-metadata">

**Author:** ![darrenjrobinson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/darrenjrobinson/32/2854_2.png) [@darrenjrobinson](https://developer.sailpoint.com/discuss/u/darrenjrobinson)\
**Post date:** [May 28, 2024, 11:41am UTC](https://developer.sailpoint.com/discuss/t/sailpoint-identitynow-powershell-module/196/27 "2024-05-28T11:41:12Z")

</div>

A couple of times recently it has been bought to my attention that the [GitHub Repo](https://github.com/darrenjrobinson/powershell_module_identitynow) was at version 1.1.7 but I had not published that to the PowerShell Gallery.

That is now remediated. You can install v1.1.7 direct from the [PowerShell Gallery](https://www.powershellgallery.com/packages/SailPointIdentityNow/1.1.7).

[Previous page](https://developer.sailpoint.com/discuss/t/sailpoint-identitynow-powershell-module/196.md?page=1)
