The GetUserAgent function is a built-in function that returns the user agent, as indicated by the header of the HTTP message.

Although this function can be used in any type of flows, it only returns significant values in Web Flows.

By calling the GetUserAgent function, it is possible to redirect end-users based on their browser versions. In the example below, end-users are redirected to a lightweight version of the application if they have an older browser.

If you need to detect if the user is using a mobile device, use the IsMobileBrowser action from RichWidgets instead.

Input parameters


Output parameters

Text Type




Firefox 12

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0"IE9"


Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19

IE 8

Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)

See Also

Available Environment Functions | Available Built-in Functions