<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
0D50Z00008OK4ADSA1Okta Classic EngineUniversal DirectoryAnswered2023-04-01T02:28:55.000Z2018-09-20T22:39:07.000Z2018-11-02T20:06:01.000Z

00uvm7ve00FHTNVXUUY1.4571202224996985E12 (Customer | Certified Okta Consultant) asked a question.

Okta Expression language AppUser Group Rules

What I'm trying to achieve:

Writing a group rule which checks to see if a user is assigned an app. If so add them to group.

 

Not sure if this is possible or even if I can pull an appuser attribute within a group rule.

 

 

One of the ways I thought about doing this is simply to check if the user has xyz attribute in a given app profile.

 

 

A very simple example

This works for the okta user profile

user.lastName=="Doe"

 

But I can't seem to get this to work for lets say the google app user profile which in our case is Variable name: google

And our profile mappings for last name in G suit is nameFamilyName

 

google.nameFamilyName=="Doe"

 

Not sure what I am doing wrong here but I can't seem to figure out the syntax for calling appuser.attribute


rmo7b and wb9y0 like this.
  • As per our expression language there is no functionality were you can use to recognize if user is assigned to an application and based on this to add the user to a specific group. Here you can consult the options available using Okta expression language : https://developer.okta.com/reference/okta_expression_language/

    You can suggest this functionality under Product>Idea. Features suggested in our community are reviewed and can be voted and commented on by other members of the community, therefore making it much easier for the engineering team to understand the priorities that you have for feature requests.

    Expand Post
    Selected as Best
  • As per our expression language there is no functionality were you can use to recognize if user is assigned to an application and based on this to add the user to a specific group. Here you can consult the options available using Okta expression language : https://developer.okta.com/reference/okta_expression_language/

    You can suggest this functionality under Product>Idea. Features suggested in our community are reviewed and can be voted and commented on by other members of the community, therefore making it much easier for the engineering team to understand the priorities that you have for feature requests.

    Expand Post
    Selected as Best
  • mike.davie1.5312945692819849E12 (Customer First Programs)

    Hello Nick,

     

    Thanks for posting your inquiry in Okta Community Portal.

     

    If you receive a great answer to your question(s), please help readers find it by marking it the best answer. Hover over the answer and click "Best Answer."

     

    Thank you,

    Mike Davie

    Okta Help Center

    Expand Post
This question is closed.
Loading
Okta Expression language AppUser Group Rules