You are viewing limited content. For full access, please sign in.

Question

Question

access denied when assigning document tag

SDK
asked on November 12, 2020

Good afternoon,

I have a question, I don't know if it happened to someone else, what happens is that we want to assign security labels by SDK, at the time of testing we get an Access Denied error with the following details: "at Laserfiche.RepositoryAccess .Entry.AssignTagByEntry (HttpUrl url, String comment, String lockToken, EntryTag et, Session session)
    at Laserfiche.RepositoryAccess.EntryInfo.AssignTag (TagInfo tag, String comment)
    at WorkflowActivity.Scripting.SDKScript.Script1.Execute () "

but it is strange to us since the user we use is an Administrator user who has all the permissions

Cheers,

 

0 0

Replies

replied on November 12, 2020 Show version history

Even though the user that the script is running under has full Administrative access to the repository, it sounds like the user doesn't have permissions to THAT tag. With a security tag, trustees must be added to that tag in order to obtain permission to assign the tag or see any documents for which that tag has been assigned.

 

You can add that user to the tag's permissions by opening the "Properties" for that user within the Laserfiche Administration Console, then looking under the "Tags" tab:

 

 

You can view the users currently added to that tag's permissions by looking in the "Properties" for that tag within the LF Admin Console:

 

 

These trustees must be added on a tag-by-tag basis (note: this only applies to security tags, not informational tags). Also, Administrators don't get access to all security tags by default; that access is only controlled at the tag level, and must be added for the individual user.

 

After adding this user account to that tag's permission list, it should resolve your issue. 

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.