Long UserID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
We currently have a user with a very long User ID, which is causing an issue when uploading files through the Attachment widget in Catalog Items.
The user's User ID is:
name1name2.lastname1lastname2@email.com
Due to its length, the system does not allow attachments to be added.
However, I cannot modify the User ID because doing so would impact the user's access to the environment and could also affect SSO authentication.
What options do I have to resolve this issue without changing the User ID?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 2 hours ago
Hi @Diego Zuniga ,
For one of our clients, we faced the same issue because the domain name was long. As a result, when the user ID was also long, it got truncated.
To address this, we increased the user ID field length from 40 to 80 characters (if I recall correctly). In our case, this change did not affect SSO.
You may want to test this in your sandbox once to confirm it works as expected.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hello @Diego Zuniga ,
Yes, this can happen because (sys_user.user_name) is a String field with a fixed maximum length. If the user's email ID exceeds that limit, which cause issues.
You can increase the Maximum Length of the user_name field by navigating to System Definition → Dictionary (sys_dictionary), searching for the user_name field on the sys_user table, updating the Maximum Length (for example, from 40 to 80), and then testing the attachment upload.
I strongly recommend validating this change .