
fqjid (fqjid) asked a question.
Is it possible to use request headers like userAgent to write custom expression for conditional access rules?
There are no examples for this in Okta expression language documentation but something like this is used in Office 365 custom filter.
https://help.okta.com/oie/en-us/content/topics/apps/office365/custom-client-filter.htm
Can such expression used for any app or is this specific to Office 365?
For example, is request.userAgent.contains(“some-value”) a valid expression for another app?
Can we use headers other than user agent to write custom expressions?
For example, is request.customHeader.contains(“some-value”) a valid expression?
Thank you in advance for help / guidance.

Hello @fqjid (fqjid) Thank you for reacting out to our Community!
These expressions are specific to Office365. However if you have Device Trust setup on your Org you should be able to do something similar, please see article below with Conditional Access for Okta:
https://support.okta.com/help/s/article/Conditional-access-based-on-device-security-posture?language=en_US
--
Subscribe Today: The Okta Community is on YouTube