
tzooi (tzooi) asked a question.
I am trying to write a rule so that the idpuser that gets created is assigned to a group. The user signs into Linkedin and linkedin sends an id token. I can see that the user gets created however the rule to provision the user to a group fails. Any ideas ?
My rule is : linkedin_idp.firstName != null
However, I get an error.

Hi,
When using the group rules we unfortunately do not support the app profile data as this does not trigger profile updates unless it is being mapped to an attribute on the users Okta profile. As you are looking at firstName you can change the query to user.firstName != null
However if these values are differing to those connecting from another source or you require a more specific identifier you can look at creating a custom attribute in the Okta profile via the profile editor (Admin --> Directory --> Profile Editor). Once the custom attribute is created you can then map the IDP profile attribute to this, again, via the profile editor and the mappings button for the IDP.
Once this has been completed you will be able to use a group rule:
user.[attributeName] == [value]
Thanks,
Chris Hancock