Skip to content

Allow Seerr requests to be made as a specific user - #218

Merged
mathieuletyrant merged 1 commit into
mainfrom
claude/serene-faraday-o8vgi7
Nov 24, 2026
Merged

mathieuletyrant merged 1 commit into
mainfrom
claude/serene-faraday-o8vgi7

Conversation

@mathieuletyrant

Copy link
Copy Markdown
Owner

Closes #

What

Added support for making Seerr requests as a specific user instead of always as the API key owner. This is controlled by a new optional requestUserId setting that can be configured in the UI.

When requestUserId is set, requests are made with the X-Api-User header, causing them to follow that user's permissions. Without Auto-Approve enabled in Seerr, such requests will wait for approval. The watchlist operations continue to use the API key owner's permissions.

Why

This allows non-admin users to request media through Spotarr while respecting Seerr's approval workflow. Previously, all requests were made as the admin (API key owner) and were automatically approved, bypassing any approval requirements.

New notions, in plain words

  • Request user ID: A Seerr user ID (e.g., "2") that requests are made as. When empty, requests are made as the API key's owner (admin) and approved immediately. When set, requests follow that user's permissions and may require approval.
  • X-Api-User header: HTTP header sent to Seerr to specify which user is making the request.

Checks

  • pnpm check passes locally
  • Added unit test covering request user behavior
  • Settings schema updated with validation for user ID format
  • UI field added with helpful hint text
  • Protobuf contract updated for persistence

A new setting, Seerr → Request as user, sends X-Api-User on requests only,
so they follow that user's permissions: without Auto-Approve they wait for
approval. The watchlist stays the API key owner's. Empty keeps today's
behaviour (admin, approved at once).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqWWDYAZBd3s1wKHq4bAUM
@mathieuletyrant mathieuletyrant self-assigned this Nov 24, 2026
@mathieuletyrant
mathieuletyrant merged commit 9bd3ca7 into main Nov 24, 2026
1 check passed
@mathieuletyrant
mathieuletyrant deleted the claude/serene-faraday-o8vgi7 branch November 24, 2026 15:11
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

Successfully merging this pull request may close these issues.

2 participants