We have moved to GitHub Issues
Created by Brian Powell 29 Aug 2017, 17:23:33 Updated by Sebastiaan Janssen 09 Oct 2017, 14:54:07
Is duplicated by: U4-10515
Relates to: U4-10111
Subtask of: UAASSCRUM-1073
In Umbraco 7.7.0 Beta, if the username is the same as the e-mail address, the username field isn't shown when editing users. When creating users, the username field is never shown.
This causes problems for installations using Active Directory or similar external authentications. Username formats need to be consistent either sAMAccountName (username) or userPrincipalName (basically, the e-mail address) for the standard MembershipProviders out there. Not allowing the username to be set independently is going to create a mismatch in a lot of installations where existing installs will have sAMAccountName-style usernames and new ones will be forced to userPrincipalName. This will require mass changes of existing usernames to fix.
Can the username field be always visible and auto-set to the same thing as the e-mail address by default, or failing that, a configuration option allow to force its display?
U4-10111 explains a bit about the underlying behavior of the user management tools that cause U4-10368.
The username will display if it is different than the email. I assume that when you are using AD that you are auto-linking the accounts (with code, etc..) and not manually creating these linked accounts in the back office?
@Shandem At least with my install, I manually create backoffice accounts as needed. We have minimal user turnover and other Umbraco site setup that needs completed for new users anyhow, so I had not seen it being worth the time to code auto-linking.
Ah ok fair enough. I'll see what we can do!
PR for review: https://github.com/umbraco/Umbraco-CMS/pull/2171 to test:
New setting in umbracoSettings.config:
<security> <!-- by default this is true, if you set this to false then you will always get both a username/password field in the user editor if this does not exist in config, the default is true. --> <usernameIsEmail>false</usernameIsEmail> </security>
This works as expected, nice work
Backwards Compatible: True
Affected versions: 7.7.0
Due in version: 7.7.0
Sprint: Sprint 67
Story Points: 1