But its not to easy, you must detect which attribute is too long and alter the column.
I suggest to you to work on the value and cut the it instead of changing the size of column.
Also this is the command
ALTER TABLE spt_identity ALTER COLUMN nameColumn VARCHAR(newIntvalue);
@charan18
Are you using upn or any of the substring of upn as your native identity or display name , can you share the exact error you are getting here
you have to update spt_link table and column which is causing the error
You can ask the azure ad team to reduce the length of the upn value. For one object it’s not ideal to increase the column size.
You can skip this entry using customisation rule to ignore it if you want the aggregation to be successful.