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

Question

Question

SDK ReadOnlyAccess = true doesn't do anything

asked on May 13, 2014

If I use this code to set my account to Read Only it doesn't set it to Read Only. What does this method do? Does anyone know the correct method? Also does anyone know why I can't get the Trustee "Everyone" by name? 

 

ILFTrustee everyone = db.GetTrusteeByName("Chad");

            everyone.ReadOnlyAccess = true;

 

0 0

Answer

SELECTED ANSWER
replied on May 13, 2014

Be sure to call the Update method on ILFTrustee to save your change.

 

As for getting a reference to "Everyone", please try the following:

ILFDomainAccount everyone = db.LookupDomainAccount("EVERYONE");

0 0
replied on May 13, 2014

Oh, that was why. Needed to use everyone.update(); or no changes were made. Thanks! I am trying to get the actual built in Everyone in Laserfiche. I am assuming it is a Trustee but not sure.

0 0
replied on May 13, 2014

The "Everyone" trustee is actually a built-in Windows security identifier and not a Laserfiche group, which is why you need to use the LookupDomainAccount method to get an object for it.

0 0
replied on May 13, 2014

Ok, it looks like domain accounts do not support setting ReadOnlyAccess to true. Through the administration console there is an option for Read Only Access just like a Trustee has.

 

The specific error is Operation invalid for the requested type of object. It does work on Trustees.

0 0

Replies

replied on May 13, 2014

Are you trying to get the domain group everyone?

 

I believe you can that  by calling LookupDomainAccount with "\\Everyone" or "Domain\Everyone"

 

I don't know about the ReadOnlyAccess property question however.

0 0
replied on May 13, 2014

Did you call the Update() method to save your changes back to the server?

 

For "everyone", we follow the convention that Microsoft has set for dealing with that group, which is that you should refer to it using its "well known sid" of "S-1-1-0".

You are not allowed to follow up in this post.

Sign in to reply to this post.