<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
0D54z0000A3rrfSCQQOkta Classic EngineAuthenticationAnswered2026-02-17T09:00:23.000Z2024-04-01T10:22:18.000Z2024-05-31T14:50:54.000Z

fqjid (fqjid) asked a question.

How to use request headers in custom expression for conditional access rules?

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

 

Image is not available

 

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.


This question is closed.
Loading
How to use request headers in custom expression for conditional access rules?