# How to append prefix in group name while returning in SAML Response

**URL:** <https://devforum.okta.com/t/how-to-append-prefix-in-group-name-while-returning-in-saml-response/21808>\
**Category:** Questions\
**Created:** [September 8, 2022, 4:11pm UTC](https://devforum.okta.com/t/how-to-append-prefix-in-group-name-while-returning-in-saml-response/21808 "2022-09-08T16:11:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![naveengujjar29](https://avatars.discourse-cdn.com/v4/letter/n/bbe5ce/32.png) [@naveengujjar29](https://devforum.okta.com/u/naveengujjar29)\
**Post date:** [September 8, 2022, 4:11pm UTC](https://devforum.okta.com/t/how-to-append-prefix-in-group-name-while-returning-in-saml-response/21808/1 "2022-09-08T16:11:36Z")

</div>

Hi,

I would like to append some prefix in my SAML groups statement response.

For example currently I have group like below:  
ABC-GROUP  
TEST-GROUP

while returning back in SAML response, I would like append some prefix like below.  
XYZ\ABC-GROUP  
XYZ\TEST-GROUP

Is there any way using which we can alter these values before passing back to SAML response.

```
        <saml2:Attribute Name="groups" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified">
            <saml2:AttributeValue
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Everyone
            </saml2:AttributeValue>
        </saml2:Attribute>

```

 ![image](https://global.discourse-cdn.com/oktadev/original/2X/f/f5f8a820edbac7c635f042665ec19e07fb491476.png)

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 12, 2024, 10:00pm UTC](https://devforum.okta.com/t/how-to-append-prefix-in-group-name-while-returning-in-saml-response/21808/2 "2024-02-12T22:00:19Z")

</div>


