Hi Terence,
Are you using IDP module for your saml config?
If yes, For the redirect to your application upon login, did you fill in the original url when calling getUnifiedLoginURL? You can refer to this documentation for more details. Link

If using IDP Module, Outsystems IDP do not have any features to map roles for now. It only option to map to group.
Thanks
Ferry