Can't create stream as owner's bot: "Insufficient permission"
See original GitHub issueThere 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:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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!
Filed #21105.