Hi @Sebastian M
You cannot use delegated permissions within a daemon. The daemon usually runs on the backend without user interaction, it only supports application permissions rather than delegated permissions, and the corresponding authentication flow is the client credentials flow.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.