Azure-RMSDocs icon indicating copy to clipboard operation
Azure-RMSDocs copied to clipboard

SetLabel Error: Calling principal is forbidden to perform the operation

Open dawei-medaitek opened this issue 1 year ago • 0 comments

as title, I run below code , when the labelId is a label bind Protection , error occured at commonAsync : Calling principal is forbidden to perform the operation; if labelId is a label with no protect , it works~

code: handler.SetLabel(fileEngine.GetLabelById(labelId), labelingOptions, new ProtectionSettings()); var result = Task.Run(async () => await handler.CommitAsync(outputFilePath)).Result; // error occured~


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

dawei-medaitek avatar Jan 19 '24 04:01 dawei-medaitek