Skip to main content

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 Apps model and try to find any useful information for the given app_id
    • For example, powr_token_value field might have something like weebly_527439924819270380. So, we can try looking for WeeblyInstalls with weebly_site_id = 527439924819270380 and find the user_id there.
    • last_wiewed_url website might be used to find users with an email from the same domain. For example, if last_wiewed_url = http://www.somesite.com/, look for users with email ending with @somesite.com
  • 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')