The administrator can create an app password on behalf of any user by impersonating them.

This is the recommended approach when preparing a OneDrive-to-Nextcloud user migration, because it allows a single administrator to collect app passwords for every user without each user having to log in and generate one themselves. App passwords created this way also work for users who have Multi-Factor Authentication enabled.

How to create an app password on behalf of a user
1. Log in to Nextcloud with an administrator account
2. Click your avatar / initials in the top-right corner and select Users
3. Locate the target user in the user list
4. Click the Impersonate action on that user’s row
5. You are now logged in as that user. Click the avatar / initials in the top-right corner and select Personal settings
6. Click Security in the left panel
7. Scroll to the bottom of the page to find the App passwords section
8. Type SMART in the App name field and click Create new app password
9. Copy the generated password immediately — it is only shown once — and paste it into the Nextcloud App Password column for that user in the mapping grid
10. Click Done, then use the Stop impersonating banner at the top of the page to return to your administrator session
11. Repeat steps 3–10 for each user in the mapping