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.