2

I'm trying to add a group that contains every user on my SharePoint application.

How would I do this?

I tried to get the BUILTIN\users or the NT Authenticated\Authenticated users from the SPWeb.SiteGroups[name]...

If I add BUILTIN\users from SP GUI it works... Is there something I need to enable to do that? I need to have a document library in which every user (10,000) can contribute... Are there other ways?

Thank you

RJ Cuthbertson
  • 8,342
  • 6
  • 38
  • 76
Ziba Leah
  • 1,987
  • 11
  • 48
  • 73

1 Answers1

5

You can get all authenticated users like below

SPUser allusers = web.EnsureUser("NT AUTHORITY\\authenticated users");
sssreddy
  • 4,473
  • 2
  • 22
  • 38