Restored content not visible to admin user

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [x] Documentation issue or request

Current behavior

We set up admin users for UI and API with the following env vars:
IDENTITY__ADMINCLIENTID
IDENTITY__ADMINCLIENTSECRET
IDENTITY__ADMINEMAIL
IDENTITY__ADMINPASSWORD

Once the app is spun up, an API call is triggered using the adminclient to restore a content backup. This content is then available to pull via the API, but the restored app is not visible to the admin user.

Expected behavior

Admin user can see a restored app.

Minimal reproduction of the problem

Spin up new app with IDENTITT_ADMIN env vars
Use API to login as admin client and restore backup
Login as admin user, restored app is not visible

Restore logs show: 2022-08-08T10:14:51Z: Current user not assigned because restore was triggered by client.

Environment

magenta-as-uks-ppportalcms

  • [x] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Azure webapp for squidex, azure container instance for Mongo

Version: [6.13]

Browser:

  • [ ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [x] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

Technically the admin client is not the same as the admin user. If you restore an app as admin you have to use the token from the profile page.

Got it. I just updated the pipeline to add the admin user as a contributor to the app via the api :slight_smile:

This works as well, of course :slight_smile:

Actually the admin only sees the restored content because of the cloud, I am mean from the user perspective there is no reason in my opinion.