Hello @Bharath Venkataramakrishnan ,
You are trying following article to configure Integration with Office 365/Azure AD.
We were able to resolve the issue after adding below custom rule from claim provider trust you were created for federation with third party Identity provider.
c:[Type == "netbiosName"] => issue(Type = "http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname", Issuer = c.Issuer, OriginalIssuer = c.OriginalIssuer, Value = c.Value, ValueType = c.ValueType);
Above rule would transform "netbiosName" value as "windowsaccountname"
To learn more about ADFS claim rule, read:
Hope this helps.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.