title: Mapping a custom attribute to a group
body: <p>I'm trying to map a custom SAML attribute used by another app to a group. Essentially we have 3 roles and the idea is to have 3 AD groups that'll be tied with each role.</p>
  
  <p>Per the answer in <a href="https://stackoverflow.com/questions/34072908/okta-group-attributes">Okta Group Attributes</a>, I see that it's not directly possible.</p>
  
  <p>What I've tried per the suggestion is to set a custom profile mapping for the application with nested ternary operators to mimic an 3 if statements to set an attribute. However, while the ternary operators work, getting the mapping to work when creating the 'Attribute Statements' portion does not.</p>
  
  <p>How else can I go about this? I'd prefer not to create 3 apps for 3 different roles if possible.</p>