How to connect user and app
Sometimes an app is not connected to the owner. It means that there's no AppAccess and the user doesn't see the app in their "My Apps" dashboard.
Finding user
If support team knows only the app_id, you'll need to find the user first.
- Go to
Appsmodel and try to find any useful information for the given app_id- For example,
powr_token_valuefield might have something likeweebly_527439924819270380. So, we can try looking forWeeblyInstallswithweebly_site_id = 527439924819270380and find the user_id there. last_wiewed_urlwebsite might be used to find users with an email from the same domain. For example, iflast_wiewed_url = http://www.somesite.com/, look for users with email ending with@somesite.com
- For example,
- If you're stuck, ask the data team for help.
If support team agrees that the user is correct, they'll ask to connect the user and the app.
Connecting user and app
If support team provided the user_id and app_id, create an AppAccess with given credentials. If you don't have access to prod, ask a senior engineer.
AppAccess.create(user_id: {user_id}, app_id: {app_id}, role: 'owner')