kevholditch / go-pagerduty-slack-sync

A small app to sync pagerduty on call groups to slack groups
MIT License
64 stars 16 forks source link

I'm having trouble generating an acceptible permission set for this app #5

Open issackelly opened 2 years ago

issackelly commented 2 years ago

Thanks for building this app. I think it's what I need. I'm reluctant to ask for installation support but on the chance that you're available, maybe I can return the favor by making the docs a little more clear.

I am getting the following error when running the docker container:

time="2022-05-18T21:22:05Z" level=info msg="starting, going to sync 1 schedules"
time="2022-05-18T21:23:05Z" level=info msg="running schedule sync..."
time="2022-05-18T21:23:10Z" level=info msg="checking slack group: current-oncall-hobbes"
time="2022-05-18T21:23:11Z" level=info msg=current-oncall-hobbes
time="2022-05-18T21:23:11Z" level=info msg="member list current-oncall-hobbes needs updating..."
time="2022-05-18T21:23:11Z" level=error msg="could not sync schedules, error: permission_denied"

I followed the instructions on the README and I generated a slack user with the following manifest, but the permissions are still seemingly inadequate. Do you think that maybe I need every affected user to install this application?

display_information:
  name: Pagerduty Oncall
features:
  bot_user:
    display_name: Pagerduty Oncall
    always_online: false
oauth_config:
  scopes:
    bot:
      - usergroups:read
      - usergroups:write
      - users:read
      - users:read.email
settings:
  org_deploy_enabled: false
  socket_mode_enabled: false
  token_rotation_enabled: false
karl-johan-grahn commented 1 year ago

I think you need to create a user token, you have only created a bot token for now