# User name appending with role name

**URL:** <https://community.amazonquick.com/t/user-name-appending-with-role-name/27621>\
**Category:** Q&A\
**Tags:** dashboard-embed, error, developer, quick-sight\
**Created:** [March 21, 2024, 8:03pm UTC](https://community.amazonquick.com/t/user-name-appending-with-role-name/27621 "2024-03-21T20:03:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesh\_Pasarkar](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@Ganesh\_Pasarkar](https://community.amazonquick.com/u/Ganesh_Pasarkar)\
**Post date:** [March 21, 2024, 8:03pm UTC](https://community.amazonquick.com/t/user-name-appending-with-role-name/27621/1 "2024-03-21T20:03:01Z")

</div>

Hi Team,

I have created first user using client.register\_user in QS which was created successfully with as IdentityType as IAM. but whenever username is creating its appending with role name from IamArn value Please help on this. ex. **aws-quicksight-reader-access** / **Jhon**

---

<div class="post-metadata">

**Author:** ![Naveed](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/naveed/32/961_2.png) [@Naveed](https://community.amazonquick.com/u/Naveed)\
**Post date:** [March 22, 2024, 4:50am UTC](https://community.amazonquick.com/t/user-name-appending-with-role-name/27621/2 "2024-03-22T04:50:21Z")

</div>

Hi,

You cannot use the “/” in your user name.

Some naming guidelines are here

Acceptable characters are lowercase letters, uppercase letters, numbers, ‘\_’, ‘-’ or ‘.’.

Create user name according the above pattern.

Regards,  
Naveed Ali

---

<div class="post-metadata">

**Author:** ![Ganesh\_Pasarkar](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@Ganesh\_Pasarkar](https://community.amazonquick.com/u/Ganesh_Pasarkar)\
**Post date:** [March 22, 2024, 5:42am UTC](https://community.amazonquick.com/t/user-name-appending-with-role-name/27621/3 "2024-03-22T05:42:44Z")

</div>

@Naveed I am not adding “/” character. Quicksight its self creating the username with this format. its not allowing me to set the user name even its mentioned in [register\_user - Boto3 1.34.68 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/quicksight/client/register_user.html). So, i have not added UserName parameter in Request, but QS itself created that with this character and format.

---

<div class="post-metadata">

**Author:** ![Naveed](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/naveed/32/961_2.png) [@Naveed](https://community.amazonquick.com/u/Naveed)\
**Post date:** [March 22, 2024, 5:45am UTC](https://community.amazonquick.com/t/user-name-appending-with-role-name/27621/4 "2024-03-22T05:45:18Z")

</div>

Hi,

I think if any character in user name is not as per format as I mentioned It will create an issue.

Regards,  
Naveed Ali

---

<div class="post-metadata">

**Author:** ![Koushik\_Muthanna](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/koushik_muthanna/32/3290_2.png) [@Koushik\_Muthanna](https://community.amazonquick.com/u/Koushik_Muthanna)\
**Post date:** [March 22, 2024, 10:13am UTC](https://community.amazonquick.com/t/user-name-appending-with-role-name/27621/5 "2024-03-22T10:13:43Z")

</div>

@Ganesh_Pasarkar ,

I believe your users are federating into Quick Sight. The uniqueness for a user in Quick Sight when federating using a specific role is of the format : iamrolename/sessionname

Kind regards,  
Koushik

---

<div class="post-metadata">

**Author:** ![Ganesh\_Pasarkar](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@Ganesh\_Pasarkar](https://community.amazonquick.com/u/Ganesh_Pasarkar)\
**Post date:** [March 22, 2024, 11:20am UTC](https://community.amazonquick.com/t/user-name-appending-with-role-name/27621/6 "2024-03-22T11:20:17Z")

</div>

@Koushik_Muthanna What is the solution to change the username and make it custom as per needs.

---

<div class="post-metadata">

**Author:** ![Koushik\_Muthanna](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/koushik_muthanna/32/3290_2.png) [@Koushik\_Muthanna](https://community.amazonquick.com/u/Koushik_Muthanna)\
**Post date:** [March 22, 2024, 12:30pm UTC](https://community.amazonquick.com/t/user-name-appending-with-role-name/27621/7 "2024-03-22T12:30:03Z")

</div>

The format is iamrolename/sessionname . The session name would be the attribute from your identity provider that user is federating from. This could be the email address for eg. You could look into customizing those at your end.
