xavier-GitHub76 opened a new issue, #28689: URL: https://github.com/apache/superset/issues/28689
### Bug description Hello, with Superset 3.1.1, I can't export dashboards with CLI if 'admin' user is not created There should be a -u option to specify the admin account to use Actually, on all branchs, 'admin' is hard coded : https://github.com/apache/superset/blob/master/superset/cli/importexport.py ![image](https://github.com/apache/superset/assets/82046143/a32addf3-6b65-4ac3-9d8f-d3892e7e2240) Best regards ### How to reproduce the bug I have an admin user 'xavier’ (user 'admin' is not created) ![image](https://github.com/apache/superset/assets/82046143/738aac6e-95f3-4ff5-8a4f-de8b051fa51a) If I export / import from web app with user ‘xavier’, it's OK with CLI, I have an error "AttributeError: 'NoneType' object has no attribute 'is_anonymous'" ![image](https://github.com/apache/superset/assets/82046143/b39ef86c-9407-4a73-95d0-258a33ba9c99) To succed, user 'admin' must exist ![image](https://github.com/apache/superset/assets/82046143/e8415fe9-6035-4d84-9d7c-ee8e7f9bbbd5) ![image](https://github.com/apache/superset/assets/82046143/b014708a-6a10-4884-9fca-f7fcde0d980c) ### Screenshots/recordings _No response_ ### Superset version master / latest-dev ### Python version 3.9 ### Node version 16 ### Browser Chrome ### Additional context _No response_ ### Checklist - [ ] I have searched Superset docs and Slack and didn't find a solution to my problem. - [ ] I have searched the GitHub issue tracker and didn't find a similar bug report. - [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org