Per my knowledge, when IRM protection is enabled for an excel file, the file content is subject to stricter access control, which means that not only the appropriate API permissions are required, but also the ability to authenticate through Microsoft's rights management system,
Users have the corresponding permissions can access the protected content. But there is no Azure app registration account can read IRM-protected content programmatically currently.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.