About this task
In LDAP attribute mapping, SMGRLoginName is by default mapped to the userprincipalName. If the SMGRLoginName mapped attribute is null for a given user in the LDAP and the auto configuration api is hit to fetch the user configuration, it results in failure.