def METHOD_NAME(self, user, organization, reinstall_data):
    logger.info(f"updated oauth_fields for sti {self.pk}")
    from apps.slack.models import SlackUserIdentity
    organization.slack_team_identity = self
    organization.save(update_fields=["slack_team_identity"])
    slack_user_identity, _ = SlackUserIdentity.objects.get_or_create(
        slack_id=reinstall_data["authed_user"]["id"],
        slack_team_identity=self,
    )
    user.slack_user_identity = slack_user_identity
    user.save(update_fields=["slack_user_identity"])
    self.bot_access_token = reinstall_data["access_token"]
    self.bot_user_id = reinstall_data["bot_user_id"]
    self.oauth_scope = reinstall_data["scope"]
    self.cached_name = reinstall_data["team"]["name"]
    self.access_token = reinstall_data["authed_user"]["access_token"]
    self.installed_by = slack_user_identity
    self.cached_reinstall_data = None
    self.installed_via_granular_permissions = True
    self.save()
    write_chatops_insight_log(
        author=user, event_name=ChatOpsEvent.WORKSPACE_CONNECTED, chatops_type=ChatOpsTypePlug.SLACK.value
    )