question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't create stream as owner's bot: "Insufficient permission"

See original GitHub issue

There appears to be a mismatch between what the documentation at https://zulip.com/help/bots-and-integrations#bot-type says about Generic bots (“Anything the bot creator can do”) and the actual effective permissions:

  • Stream permissions > Who can create public streams: Admins and moderators
  • Bot owner: Me (Role: Owner)
  • Bot type: Generic bot
  • Request URL: https://project-stream-bot%40iter-square.zulipchat.com:xxxxx@iter-square.zulipchat.com/api/v1/users/me/subscriptions?announce=true&authorization_errors_fatal=true&history_public_to_subscribers=true&message_retention_days=%22realm_default%22&principals=%5B450752%5D&stream_post_policy=1&subscriptions=%5B%7B%22name%22%3A%22project%2Fiteration-square-automation%22%2C%22description%22%3A%22Automation+endpoints+for+my+Zulip+organisation.%22%7D%5D
  • Respone from Zulip: {"result":"error","msg":"Insufficient permission","code":"BAD_REQUEST"} (400 Bad Request)

It works fine if I impersonate myself by replacing the email and token in that URL instead.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
timabbottcommented, Feb 11, 2022

I pushed a change to correct the inaccurate documentation here. I expect @alya to open an issue in a couple days for adding web UI for displaying and changing bots’ roles; that’ll benefit from a fresh issue.

Thanks again for the report @Tamschi!

0reactions
alyacommented, Feb 11, 2022

Filed #21105.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow changing bot role from UI · Issue #21105 · zulip ... - GitHub
can be changed via API but is not displayed or changeable via bot ... Can't create stream as owner's bot: "Insufficient permission" #19978....
Read more >
Azure Bot - Insufficient privileges to complete the operation
Hi, On my personal pay-as-you-go subscription (logged in with same email id i.e. owner), I am trying to create a bot by following...
Read more >
Error while creating stream on a table in Snowflake
If change tracking hasn't been enabled explicitly by the table owner role, then only the table owner role may create the stream.
Read more >
How to deal with the Salesforce Insufficient Privileges error
The Salesforce insufficient Privileges error can frustrate users, but Salesforce Admins have the resources to troubleshoot and help users.
Read more >
How to fix "insufficient privileges to access this directory" error
Solution: 1. manually create the required folder, 2. download the ... 4. double-click the "Take Ownership.reg" file to add it to the Windows ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found