2

On SPGroup there is a property called IsHiddenInUI - a value that indicates whether this member should be hidden in the UI. However you can't set that (it is a get only).

I'm creating some groups I want to be hidden if possible, and this looks like the option I want to set, only it is not possible.

Question is how I get around that - am I missing some special creation parameter or is it possible to specify somehow else?

1

According to MSDN it's a getter property, so you can not set it.

A similar question was asked a few years back. However according to the answer:

you can set a service account as owner and specify that only the owner can add members (AllowMembersEditMembership = false)

if that is why you're asking.

2
  • I know that - the reason I'm asking is that I've earlier seen examples of changing value of "getter only" properties via XML. Perhaps something similar can be done here. – mhbuur Sep 20 '15 at 16:20
  • You could try using reflection in C# to set it. I'm not familiar with any other approach. – user2536 Sep 21 '15 at 8:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.