# OKTA Connector not able to pull samlRoles

**URL:** <https://developer.sailpoint.com/discuss/t/okta-connector-not-able-to-pull-samlroles/55935>\
**Category:** SHF Discussion and Questions\
**Tags:** sailpoint-identity-security\
**Created:** [May 9, 2024, 1:02am UTC](https://developer.sailpoint.com/discuss/t/okta-connector-not-able-to-pull-samlroles/55935 "2024-05-09T01:02:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![i33927](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@i33927](https://developer.sailpoint.com/discuss/u/i33927)\
**Post date:** [May 9, 2024, 1:02am UTC](https://developer.sailpoint.com/discuss/t/okta-connector-not-able-to-pull-samlroles/55935/1 "2024-05-09T01:02:20Z")

</div>

Has anyone configured the okta connector to the point where they can pull samlRoles that belong to OktaGroups.

They are reference array data types when you create a AWS federated Application in OKTA.

Thanks

---

<div class="post-metadata">

**Author:** ![RRLatFlinders](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@RRLatFlinders](https://developer.sailpoint.com/discuss/u/RRLatFlinders)\
**Post date:** [May 9, 2024, 3:20am UTC](https://developer.sailpoint.com/discuss/t/okta-connector-not-able-to-pull-samlroles/55935/2 "2024-05-09T03:20:55Z")

</div>

Hi Patel, we don’t have the configuration you’re asking about, but it sounds like you have AWS groups that you’re using for roles and synchronise the groups into Okta. Then you want to pull those groups into IdentityNow/ISC as entitlements?

If you edit the Okta connector you can see the filter settings used to pull in the groups as entitlements:

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

Since the connector is likely using the list-groups with filter (tested on my tenant, unfortunately it doesn’t use the list groups with search) Okta API you should be able to modify the filter to pull in the groups you desire:

> **[Groups | Okta Developer](https://developer.okta.com/docs/reference/api/groups/#list-groups)**
>
> Secure, scalable, and highly available authentication and user management for any app.

> **[Core Okta API | Okta Developer](https://developer.okta.com/docs/reference/core-okta-api/#filter)**
>
> Learn how the Okta API works and learn about the compatibility rules and design principles.

Unfortunately it appears you can’t use the starts with (sw) or name attributes in the list groups with filter, so you could either allow all imported APP\_GROUP types:  
type eq “BUILT\_IN” or type eq “OKTA\_GROUP” or type eq “APP\_GROUP”

Or if you don’t have many groups you need to pull in, you could address them individually:  
type eq “BUILT\_IN” or type eq “OKTA\_GROUP” or id eq “00g1emaKYZTWRYYRRTSK” or id eq “”

I’ve confirmed this worked to aggregate an Active Directory group we have synchronised to Okta.

Other options would be to build a custom web-services source specifically to pull in these AWS groups in Okta, as you could use the list Okta groups with search API instead of the filter operation. Or you could potentially build a before-operation rule for your current Okta connector.

---

<div class="post-metadata">

**Author:** ![i33927](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@i33927](https://developer.sailpoint.com/discuss/u/i33927)\
**Post date:** [May 9, 2024, 2:35pm UTC](https://developer.sailpoint.com/discuss/t/okta-connector-not-able-to-pull-samlroles/55935/3 "2024-05-09T14:35:03Z")

</div>

Hi Rapheal

Thanks for your response.

I am able to pull the applications, Okta Groups and App Groups by adding the filters as below:

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

What i am looking for to aggregate in IDN is the below from OKTA Tenants: Applications \> AWS Application \> Okta groups \> SAML User Roles

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

When i map the samlRoles to a customAttribute within Okta to pull this within the IDN Schema

i get the following:

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

and that is what i am trying to resolve. How do i get the saml user roles to be aggregated.

I see there is an OKTA API : {{url}}/api/v1/apps//groups that would give me that info but i think the okta connector in IDN does not support this api call. Just confirming if anyone was able to get this info in.

reference:

[okta powershell to retrieve AWS group/roles info](https://support.okta.com/help/s/question/0D51Y00006Aso6TSAR/okta-powershell-to-retrieve-aws-grouproles-info?language=en_US)

[How to List the AWS Roles and SAML User Roles Assigned to Okta Groups](https://support.okta.com/help/s/article/How-to-pull-a-list-of-the-AWS-Role-and-SAML-User-Rolesassigned-to-groups-in-Amazon-Web-Services-Account-Federation-app-in-Okta?language=en_US)

---

<div class="post-metadata">

**Author:** ![RRLatFlinders](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@RRLatFlinders](https://developer.sailpoint.com/discuss/u/RRLatFlinders)\
**Post date:** [May 10, 2024, 1:05am UTC](https://developer.sailpoint.com/discuss/t/okta-connector-not-able-to-pull-samlroles/55935/4 "2024-05-10T01:05:37Z")

</div>

Hi Patel, can you post your IdentityNow Okta source account schema configuration for the mapped attribute, as well as your Okta entitlements schemas?

Perhaps also include the output of API calls to Okta when doing a get group for one of the samlRoles groups and get user for a user that has one or more of the samlRoles assigned?

---

<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 9, 2024, 1:06am UTC](https://developer.sailpoint.com/discuss/t/okta-connector-not-able-to-pull-samlroles/55935/5 "2024-07-09T01:06:14Z")

</div>

Closed on July 9, 2024, 1:06am UTC

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