I installed UCS Server with Lets Encrypt and Nextcloud. Runs great so far. Even the connection to external storage. A Windows file server. Worked under my Debian installation only partially. with some Windows servers it worked, with some not. Well.
The real problem is that I want to invite external users to our Azure AD as a guest, which works fine so far.
Also the SAML login works fine and the user is in his Nextcloud.
The account of a guest looks like this. vorname.nachame_domain.at#EXT#@tenant.onmicrosoft.com
As a username, this is what is in the Nextcloud.
vorname.nachame_domain.at#EXT#@tenant.onmicrosoft.com = user principal name
This is probably the problem.
Can’t Nextcloud handle the cryptic name?
I can’t delete it from the Nextcloud user management.
I get the message: “An error occurred during the request”.
Internal Username:
The internal username is the identifier in Nextcloud for LDAP users. By default it will be created from the UUID attribute. The UUID attribute ensures that the username is unique, and that characters do not need to be converted. Only these characters are allowed: [a-zA-Z0-9_.@-]. Other characters are replaced with their ASCII equivalents, or are simply omitted.
And:
By default, the Nextcloud server creates the user directory in your Nextcloud data directory and gives it the Nextcloud username,
it is possible to change the “User principal name” in the Azure AD config. Simply select the user, then “Properties” and remove the “#” or any other unwanted characters.