<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language
0D54z00007L5ZQOCA3Okta Classic EngineUniversal DirectoryAnswered2023-08-16T12:15:35.000Z2021-12-15T10:00:41.000Z2021-12-15T19:22:21.000Z

AndyC.64975 (Customer) asked a question.

Rule expressions - isMemberOGroupName GroupA AND GroupB ?

I'm looking to create a rules that adds people to an Okta group IF they are a member of two AD groups. My best attempt:

 

user.isMemberOGroupName = "Group A" AND user.isMemberOGroupName = "Group B"

 

...is this possible?

 


  • AndyC.64975 (Customer)

    Got there with trial and error. For anyone landing here off a search:

    isMemberOfGroup("GroupID1") AND isMemberOfGroup("GroupID2") AND ! isMemberOfGroup("GroupID3")

     

    ^users who are members of group1 AND group2 but not group3

This question is closed.
Loading
Rule expressions - isMemberOGroupName GroupA AND GroupB ?
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply