Skip to content

SetLabel Error: Calling principal is forbidden to perform the operation #1550

@dawei-medaitek

Description

@dawei-medaitek

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions