Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
issackelly opened this issue May 18, 2022 · 1 comment

Comments

@issackelly
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants