It isn’t recommended to change the internal userid mapping to something else. Since you have to be aware if any other attribute you might chose will have to be persistant and can never change. Otherwise user’s might lose their data in ownCloud.
Perhaps explain what the exact problem is you are trying to solve.
If users have trouble logging in, there might be some additional settings you have to set.
If you want to search for users in the sharing dialog, there are other additional settings.
Thank you for your help ,the server is new and it’s not published , i took a look the link you said , i just want in username column instead of uid show me the username i think the benefit of this is , in server files stores in path with the name of user if in column show the username instead of uid the folder name is of user
Change the internal username to “samaccountname”
Clear the LDAP mappings
Run the occ user:sync command.
The occ user:sync command have some options to remove the accounts that are missing. You should use that option.
Just a couple of reminders:
Clearing the mappings will likely break things. This is fine because it’s a new installation and you don’t have any important data on it, but once you have the server up and running, you shouldn’t touch it.
Removing the account will also remove the account’s data, in particular the files. For the user:sync command, the usual recommendation is to disable the missing accounts instead of removing them, so you have a chance to perform actions before removing them.