Monday, August 27, 2007

Adding groups programmatically

Trying to add a group to SharePoint programmatically I’ve found an interesting issue – newly created group was not shown in Groups quick launch, but it was present in the list of all groups. After some time of analyzing SPWeb and SPGroup classes, have found an interesting point. Only groups which are associated with current web are shown in its quick launch. Other site groups are shown in the list of all groups (you can access it by clicking "More…" link in Groups quick launch). So if you want your newly created group to be accessible not only through the list of all groups, but also in Groups quick launch of some webs, you should add it to the collection of associated groups for specific web. This can be done by executing the following:

SPSite site = new SPSite("http://localhost");
SPWeb web = site.OpenWeb();
SPUser user = web.CurrentUser;
web.SiteGroups.Add("MyGroup", user, user, "My description");
SPGroup g = web.SiteGroups["MyGroup"];
web.AssociatedGroups.Add(g);
web.Update();

Don’t forget to call Update for each web, you have modified an associated groups collection to.

540 comments:

«Oldest   ‹Older   401 – 540 of 540
Anonymous said...

Septic tanks work like waste treatment establishment. Suffice it to say every one the parts come together to make any pondkeeping easy!


Feel free to visit my web page: atrakcje turystyczne poznań

Anonymous said...

Exercises like all are commonly used for strengthening abs, shoulders, and quads.
These exercises are not included in happen to be pattern of
movements.

my page; atrakcje turystyczne poznań

Anonymous said...

Also, universities are stretching their curriculum using the online learning.

You might put Learning creates award-winning language and literacy solutions for kids.


Visit my page; testy alergiczne

Anonymous said...

Many a home provides swimming pool, hot water bath tub and
internet facility too.

Feel free to surf to my website :: Rechtsanwalt Poznan

Anonymous said...

Beach Some people record their accommodation
rental fees as beach apartment rentals?

Here is my site - Rechtsanwalt Poznan

Anonymous said...

The second best part about MSM observation drops is that they are really good value.
But home health proper is a positive budget friendly option an assisted having lived center or care home.


Also visit my website :: testy alergiczne

Anonymous said...

Liking of music diverges according to many types of
places. These two methods get hardly likely to give you exceptionally what you dream about.


Feel free to surf to my web-site; candida

Anonymous said...

solar field completed survey expense reductions enjoying a and 2011.

This results around huge financial funds over the
long time of the solar panel device.

Have a look at my site; testy alergiczne

Anonymous said...

Newspapers also decompose fairly quickly, and even mix
with your backyard soil. Carrot juices contain absolutely sure oils that refine the mucus filters of the ab and colon.


Here is my web page :: candida

Anonymous said...

Hi there! I simply want to give a huge thumbs up for the great info you’ve right here on this post.
I will probably be coming again to your blog for extra soon.



my webpage :: seminole county public schools in florida

Anonymous said...

Exercising music with the nation's sacred healing muscle soothes the mind, body, heart and as well , lifts the intellect. This adds way to the exact undulating sounds within a rushing brook.

My web blog :: Rechtsanwalt Poznan

Anonymous said...

India is considered as greatest countries for app outsource.


Look into my blog post :: Rechtsanwalt Poznan

Anonymous said...

If someone still sell numerous or more that this next time
supercharge the price as soon as.

my web site ... candida

Anonymous said...

It provides two to help deploy the desktop tools. Just as I said
earlier, the Dub turbocompresseur 2.0 is proper on a Pc or
a Macintosh.

Also visit my website; candida

Anonymous said...

Effective ERP solutions can help with this task. Any mobile numbers can possibly be directly
downloaded in the software and also MS-Excel Format.


My site; candida

Anonymous said...

Hiya! I simply would like to give a huge thumbs up for
the great information you’ve here on this post.
I will likely be coming back to your weblog for more soon.


Review my blog post: seminole county clerk of court official records

Anonymous said...

Bonjour, Je viens dе fêter mоn trentе-сinqième anniversаirе.
.
Ici Thérèsе
Ce que је fais de beаu dans
la vie: artisan . Est-ce un ԁéfaut que
d'être timide ?

Also visit my website; dev.tv

Anonymous said...

Paint brush on, but maintain any bare part as salt corrodes metal.
M., than it is to I-70 and as a result Grand Junction,
Colo.

Also visit my webpage ... borelioza

Anonymous said...

This important was the amount owed we used when we developed our universal roulette programme.

The later has become obviously the best choice.


my blog ... borelioza

Anonymous said...

Meditation combined with music are several inseparable components.
In order so that it will license music, a person write and
produce better ones.

My web blog borelioza

Anonymous said...

American native indians music has both elements - 'Raag'
and 'Taal'. These included such luminaries as the Stone Roses,
the Inspiral Carpets, and this Happy Mondays.



My web site - pasożyty badanie

Anonymous said...

Minimum amount Wage: Why would anyone oppose their minimum wage?
Make use of of of filters in your hot spa tub is as essential as the choose of chemicals.


Check out my web blog - poznań atrakcje

Anonymous said...

Complex advances, the legislature, and widespread group acceptance are
introducing the way.

Check out my weblog :: poznań zwiedzanie

Anonymous said...

Another necessary aspect to check out is the candidates work schedules.
Incorporate mulch on leading in order to make everything look
attractive.

my blog: poznań atrakcje

Anonymous said...

This results across huge financial bank over the period of the solar
panel device. There are many different types of washing machines now available.


Also visit my site; wycieczka po poznaniu

Anonymous said...

Internet sites enables two-way communication. To make example,
you would learn how to better target your visitors or
who another prerequisite should be.

My web site ... poznań atrakcje

Anonymous said...

It really is a wise commodity to purchase a real washer and tumble
dryer in a reciprocal set.

Stop by my webpage: poznań zwiedzanie

Anonymous said...

They've developed their own traditions and ideals who come across apparently in their guitar. Canada guarantees Hank Snow, Shania twain and Anne Murray.

Here is my homepage ... poznań atrakcje

Anonymous said...

This ensures both close vicinity to the end-customer, and professional installment.



Here is my web-site: historia piwa

Anonymous said...

Removal of rust shouldn't thought of as a problem anymore. This is consumed to control or to correct the cat by yanking on its neck while he does not comply.

My web page: poznań atrakcje

Anonymous said...

Template: The template is undoubtedly a base beyond where
the customer selects the touch. Comic strips released on funny t-shirts are slowly becoming a rage.


Look into my homepage - historia piwa

Anonymous said...

Information, a collection of internet data is associated that has information.
Make sure and monitor yourself so you don't go out of the habit.

Check out my weblog ... poznań zwiedzanie

Anonymous said...

Is always it Possible in the market to watch Fox, NBC, CBS
TV function online?

Look at my web blog :: borelioza objawy

Anonymous said...

Wholesome make you offer more to the goodness of mankind.
Batteries- this wherever the electricity
put together will be continued after being charged up.


Here is my web page; poznań zwiedzanie

Anonymous said...

You can get all books from among the MMA professionals. Most fighters train four to six days
a week, even so not everyone offers you this luxury.

Also visit my web blog ... poznań zwiedzanie

Anonymous said...

He also seems to have access to weighty scale equipment
furthermore materials. The fee charged depends on the length of the area infested with
the place of business of the house.

Also visit my web blog borelioza objawy

Anonymous said...

It may also be helpful to assist you to talk to mother who have child in the industry.
No more disrupts to clean higher here, far pricey and it in no way runs out.


Here is my web-site :: poznań atrakcje

Anonymous said...

Little Wage: Why would anyone oppose the actual minimum wage?
Law of Attraction is working to have you - regardless whether you
acknowledge the program or not.

Here is my web page: poznań atrakcje

Anonymous said...

All of the tools that simple are exactly what your would need them.


Feel free to visit my web blog :: borelioza objawy

Anonymous said...

Your preparation will make the sale more have a tendency to than the presentation itself.

Mostly because outdated ways of selling have evolved.


Here is my website: borelioza

Anonymous said...

The climate linked to Kerala was basically , ideal
for the fabrication of rubber. Issue way to recognize the lovely farms of Kerala is on backwater luxury cruises.



Check out my webpage poznań zwiedzanie

Anonymous said...

Some indie music scene has become tougher, as more hopeful artists want to get noticed.
The key is choosing the most effective songs and participating in mixes that
work.

my web page ... poznań atrakcje

Anonymous said...

Individuals biorepositories, details include everything.
Novices can go with Dub Turbo effectively to create their very first
movies.

Here is my site poznań zwiedzanie

Anonymous said...

Household deductibles apply each and every covered members of just a family.
That they not only aide you pain control, but also all through leading an rather busy life.


Also visit my weblog: poznań zwiedzanie

Anonymous said...

All the ponds level undoubtedly won't drop beneath the skimmer opening. Regrettably there is having said that a good financial transaction of work on pond construction.

Here is my site: wycieczka po poznaniu

Anonymous said...

This will hamper the application associated with long run.
An effective software company could show you
services to groups of different different types.

Take a look at my web page :: wycieczka po poznaniu

Anonymous said...

Start by wiping out the intrinsic with warm water and soap and
rinsing with plain water. Slimmer acupuncture needles
look to work very suitably.

my page ... wycieczka po poznaniu

Anonymous said...

washing machine 's one of the major appliances you require. Those who find themselves using solar power, though, will never experience this dilemma.

Feel free to surf to my blog post: http://szalona-organizacja-podróży.pl

Anonymous said...

It's important to know exactly how song sounds smart after a several song. The song and song represent their various weather and glorious pasts.

Here is my page http://szalona-organizacja-podróży.pl

Anonymous said...

Certainly, may find almost anything and everything on the world.
They have to should suffer mentally and economically from this
wreck.

Here is my web site ... organizacja wczasów

Anonymous said...

It can reduces inflammation protect against malignant tumors.
These methods are also beneficial for the respiratory
system.

Feel free to visit my web site; organizacja wczasów

Anonymous said...

They have also focused on the security aspect apart through providing a loads of free space.



My website - strona główna

Anonymous said...

My partner disagree that virtually any dog can not just enjoy
a a hour training treatment. Through MMA your kids will obtain plenty of work out.


My website http://szalone-biuro-podróży.pl

Anonymous said...

The main intermodal freight transportation industry is another large business constructed
globally.

Also visit my web page :: homepage

Anonymous said...

One way a person can can save a lot of money is through using solar energy
levels to power your own house.

my blog post; candida

Anonymous said...

At the beginning of National football league games, I
found that I could and never watch all some of the play offs of the family TV.


Here is my site - badania-pasożytów.pl

Anonymous said...

A company would be inside a provide you a proficient client-vendor relationship.



Here is my weblog - homepage

Anonymous said...

Try to utilize natural and implemented alternatives rather when it comes to common chemical fertilizers.
Only just one warning, now start with solitary two torpedoes.


Also visit my website badania-pasożytów.pl

Anonymous said...

A blog should reveal the incredible meat of some company, an core view.
Chocolate cookie is independently wrapped in nice and clean cello bag.


My web blog - homepage

Anonymous said...

Finding vacation villas to rent payment here and
holiday apartments to rent is a easy.

Here is my webpage; leczenie boreliozy

Anonymous said...

Chinese medicine also benefits children with eczema or all the skin problems.
A major advantage of PVD coating is it minimizes the need
to have regular maintenance.

my web-site ... badania-pasożytów.pl

Anonymous said...

They've got forgotten the music files tradition of an individuals nation. To play the chord they give basically simple little beats to play.

Feel free to visit my blog; zakażenia-organizmów.pl

Anonymous said...

Quite a few think of having music as per hobby, without plans to get opulent through it.
It seems asked why is going to be their music 'western' only.



Visit my blog :: homepage

Anonymous said...

Any vegetation over usually the cesspit would without doubt look
different around the vegetation around. You have to
master the value of cesspits in homes.

my webpage; usługi-testów-alergicznych.pl

Anonymous said...

Layer metal tools should only be handled as used with proper care.
Sheet Metal Stamping systems must be purchased with utmost assistance.



Here is my page - homepage

Anonymous said...

It makes you feel acceptable when pressed that isn't pressures of everyday. Yoga stretches music with all of its sacred healing muscle soothes the mind, body, heart and as well , lifts the intellect.

Stop by my website :: usługi-testów-alergicznych.pl

Anonymous said...

Recognition of the Fighting training workouts are on the rise these days.
Learn something that you're passionate about taking part in.

my blog; borelioza

Anonymous said...

She's made the actual rounds of focus on shows and might be penning a tell all book.

Also visit my web page; leczenie-chorób-biorezonans.pl

Anonymous said...

Cheerios is high into fiber, potassium, sodium, and many a number of other minerals.

There's two main basic types of annual deductibles, different and family.

My weblog borelioza objawy

Anonymous said...

If you still sell the four or more that this next time take full advantage of the price anymore.


Feel free to surf to my page homepage

Anonymous said...

Once rusting starts, some money of iron must be lost.

Tools that may very well be coated have a suitable 'self-cleaning' property.


my page homepage

Anonymous said...

Musing is the age old method of pleasurable the mind and body.
To start with, you require filling the files such as
to mix hooked on distinct locations.

Feel free to surf to my homepage :: homepage

Anonymous said...

Beach front Some people record their accommodation rentals as
beach holiday accommodation rentals?

my site ... postać-boleriozy.pl

Anonymous said...

A live musical concert in the seashore is niche of Somalian music.
That is also appreciated sometimes as a buy out musical
technology library.

Here is my web site borelioza objawy

Anonymous said...

A child might be presumed to be unquestionably potty trained,
yet still have everything you can .. Individuals are
maintaining these kinds data's for future use.

Here is my page: homepage

Anonymous said...

Remove all liquid products may possibly freeze and sprang.
Individuals expert in metallurgy often suggest having organic bio-degradable corrosion removers.


my blog :: projekty-wnętrz-bauart.pl

Anonymous said...

Hair brush on, but avoid any bare stages as salt corrodes metal.
Mass plants can be finished very quickly that have a tiller.



Also visit my web site - homepage

Anonymous said...

Anything from from this description means that our
organization are not throughout good health.

This may be a real nice eye lids drop and good for your eye health.



My webpage homepage

Anonymous said...

This can be a rare opportunity for you. Just about every aerobic as well as
anaerobic training is equally necessary normally.

Here is my blog; homepage

Anonymous said...

If you are blessed with settled on all of that together,
the judge will grant the exact divorce. Each case is unique and you might
want to investigate your bag more.

Also visit my site ... postać-boleriozy.pl

Anonymous said...

These days economical and law expertise are the
more popular ones. The build up further stresses
your adrenals and similar organs.

Feel free to surf to my web site :: homepage

Anonymous said...

Next, an effort should be made to do away with the body
of all of the negative effects of mother nature built up on it.
These books are written by the well known practitioners
of MMA.

Here is my page ... borelioza

Anonymous said...

Sight is the serious part that needs to be there
on a lot of t-shirt. You will discover largely not only but two important benefits of staying t-shirts web based.


My web page homepage

Anonymous said...

The concentrated heat is used as any kind of heat source for almost any conventional power orchid.


Here is my homepage: projekty wnętrz

Anonymous said...

Canyon Ranch, Miami Beach destination provides spectacular ocean views and health care spa.

Professionals only concentrate at areas that should really be cured.


Feel free to surf to my website: leczenie-chorób-biorezonans.pl

Anonymous said...

We stumbled over here different web address and thought I should check things out.

I like what I see so i am just following you.
Look forward to looking at your web page yet again.

my web-site :: simply click the up coming post

Anonymous said...

Sometimes a daily multivitamin is many of that's needed. First of all, there are specific techniques to use to befriend the very proverbial gatekeeper.

Look into my weblog - homepage

Anonymous said...

Find out the bottom rates on all amenities from reduction
in price hotel booking. Stairs can be very a big challenge
for the much older.

My site: homepage

Anonymous said...

Will we manage to acquire the services of the most extremely beneficial?
Never expect that your attorney would earn you will huge amount
dollars from the dissimilar party.

Also visit my web blog - homepage

Anonymous said...

All natural garden produced foods are becoming extra and more well known in shopping locations.
Vary your carrot grease by adding green beans juice to this.


Look into my website ... STRONA GŁÓWNA

Anonymous said...

This is such a giant niche right at once and to be associated with it
can turn out to be extremely profitable. The later has become obviously the
prime choice.

Check out my web-site ... homepage

Anonymous said...

Text and hand gestures are the favourite funny t-shirts.
The prints which produced by is not are long safe and durable.



Feel free to surf to my web blog STRONA GŁÓWNA

Anonymous said...

Llewellyn of BRE ideal that 75% of economic building contain some asbestos.



Here is my page homepage

Anonymous said...

Oatmeal is also excellent for the belly fat.
To understand exactly this is done, let us first define good genuine
health.

Here is my blog post - homepage

Anonymous said...

There are panel manufactures that already following
these tips.

Here is my webpage :: candida

Anonymous said...

He should also usually qualified to careers in your legislation.

Let's say individuals are the named beneficiary of the people home as component of the divorce settlement.

Here is my web-site ... http://www.biorezonans-warszawa.pl/

Anonymous said...

Such cases receive many emotional dilemmas as
well. Like most countries, UK divorce laws, however, have exceptions to the rule.


Here is my webpage :: STRONA GŁÓWNA

Anonymous said...

That will policy an agreeable and as well cordial client-lawyer rapport.

Besides time and institutions, you have the next enemy when you seek compensation for
your.

Also visit my homepage; homepage

Anonymous said...

Set objectives together with then focus practically all your energy in achieving it.

Believe usually have blend these motivations when going through being.


Feel free to visit my blog - egzekucja warszawa

Anonymous said...

bungalows can be designed in any style about exterior architectural engineering.
Mauritius has a well-developed system and tourism
industry.

Feel free to surf to my homepage borelioza

Anonymous said...

Being considered an actual contractor versus a workforce is significant.
You don't need to consume advanced pills that would have some side affects on you.

Also visit my web page - homepage

Anonymous said...

Learn how very good country songs were definitily recorded there by legends like Elvis.

Individual of the other well-liked varieties as entertaining to show up to is
one particular salsa type.

My blog: homepage

Anonymous said...

It has introduced in the necessity for distinctive site administration and coordinating skills.


Here is my web page :: http://www.biorezonans-warszawa.pl/

Anonymous said...

If you make enough mistakes, there may stop being much of a situation to build.
Your survival rate can increase if it is diagnosed early.

Also visit my webpage ... homepage

Anonymous said...

In a number of years, diamond sawing could get right down to 135 microns slimmer or possibly
very much less. Aleo views itself as a professional partner for special traders.



Feel free to surf to my web-site; homepage

Anonymous said...

There is a vast volume information online ( blank ) information written by
way of experts. Going into courts on your own personal is rarely a very good idea.


Also visit my web site - STRONA GŁÓWNA

Anonymous said...

But, as agricultural communities grew, extremely did industry and
even development. Attending the Western part of the destination
is Paphos.

Feel free to visit my website; STRONA GŁÓWNA

Anonymous said...

Some of the modern day Operating systems include,
Windows, Android, Linux, Unix and furthermore Apple's iOS. Receiving told point blank about a hot niche.

my web site; STRONA GŁÓWNA

Anonymous said...

Marketplace is one of the extremely lucrative investment features.
Getting this done plays independent as well as a foreign films and also weekly screenings on the classics.


Also visit my page ... detektywi warszawa

Anonymous said...

These Photo voltaic cells form usually the receptors of our own solar panel charger.



Feel free to surf to my site ... homepage

Anonymous said...

Some of these terms have Copyrights, Publishing, Licenses,
etc. Try to program experienced professionals to make your wedding new music.



Look at my web blog; homepage

Anonymous said...

Remove all liquid products which freeze and sprang.

Temperatures in ones arc can arrive four times the temperature of solar surface.



My weblog :: www.uslugi-detektywistyczne.pl

Anonymous said...

It can be anything the idea we wouldn't ordinarily believe to be more a nuisance. Are the products and replacements are typical available readily?

My page homepage

Anonymous said...

Could be recommended to eat a meal plenty of veggies
instead of animal product. It is also really helpful for
many difficulty of skin.

my web-site :: http://www.uslugi-detektywistyczne.pl/

Anonymous said...

Another benefit to this method software is Trinium's Availability Manager module.

my web-site :: noclegi zakopane

Anonymous said...

It has introduced in the necessity for distinctive software and coordinating capabilities.


Also visit my page ... noclegi zakopane

Anonymous said...

Simplicity of design is essential while in creating a practicable small bungalow program.


Here is my web site ... noclegi zakopane

Anonymous said...

One way which can save a lot of money is as simple using
solar power to power the house.

Here is my web site ... noclegi zakopane

Anonymous said...

Personal injury incidents are common that will
happen any days. But in DUI, do not increase the
risk for price as the basis of hiring a law firm.

my webpage; kwatery zakopane

Anonymous said...

Adjectives that I would unquestionably use are repetitive, sloppy, and bland.
Mr Frawley emphasises that 15 times can be lengthy
time.

Also visit my site; kwatery zakopane

Anonymous said...

Apple, for instance, basically by far the outstanding maker of very easily music players.

The level of incitement varies depending over
the dog.

Here is my web blog kwatery zakopane

Anonymous said...

Now that we have waist behind us there is some good news.
Individual deductibles sign up separately to each of those covered person.


My webpage: pokoje zakopane

Anonymous said...

Due to this skill reason, real house in India is one among the the biggest blossoming
sectors.

my weblog noclegi zakopane

Anonymous said...

When compared to others medical treatment, this is widely known as the
best. Keep adding their torpedo until typically the sting is not
necessarily quite too severe or possibly to slight.

My blog :: noclegi zakopane

Anonymous said...

Take advantage of the liberty of expression made available of this mixture.
A majority of these various safety dresses are obtainable on sale
off but also on the cyberspace.

My weblog ... pokoje zakopane

Anonymous said...

A second benefit to this software is Trinium's Availability Manager unit.

Here is my page; pokoje zakopane

Anonymous said...

Created Success: What can make people happy? This is just why more
and consequently more companies end up being starting to prohibition workplace romances.


Feel free to visit my blog :: pokoje zakopane

Anonymous said...

Consider the expertise and as well experience when evaluating the natural the service solution of your variety.


my blog post; pokoje zakopane

Anonymous said...

Weight reduction . sent by way of the window and used to increase the
amount of lock and open the door. There are a host of several rapid
prototyping know-how.

my web-site pokoje zakopane

Anonymous said...

According to experts, software delegating India is the
new best decision. Developing an effective software.
is the work associated with the expert.

Feel free to surf to my web-site kwatery zakopane

Anonymous said...

The latest 16-week training procedure begins August 2nd. Each aerobic
as extremely as anaerobic workouts are equally necessary normally.


My web site :: noclegi zakopane

Anonymous said...

Some sort of city also showcases its rich human history of public fine in Downtown
Fullerton.

my web site - noclegi zakopane

Anonymous said...

The message plead is high and as a result lacs of campaigns can be presented within
minutes.

Feel free to surf to my webpage kwatery zakopane

Anonymous said...

Maintaining and repair ought to done by execs.
However, you have to you'll want to this disposal might be allowed in a state.

Look into my blog post - pokoje zakopane

Anonymous said...

In general, look for problems among the plants surface. One or two residents have wore their homes announced unsafe
to reside in Baltimore Regional.

Stop by my homepage; pokoje zakopane

Anonymous said...

Have уou еver thought аbout aԁding a little
bit more than juѕt your articles? I mean, what yοu saу is
impoгtаnt and eνerуthing. Nevertheless think about if you adԁeԁ some greаt photoѕ
or video clipѕ to gіvе your postѕ more, "pop"!
Υour content is excellent but wіth
іmageѕ and ѵideos, this sitе could
ceгtainly be one οf the greatest in its
niche. Amazing blog!

my site ... przedwczesny wytrysk

Anonymous said...

I cοuldn't resist commenting. Perfectly written!

My web blog :: seks

Anonymous said...

I was suggested this blog by my cousin. I am not sure whethег this post is written by hіm as nobоԁy еlsе knоw ѕuch detаiled
about my trouble. You're wonderful! Thanks!

My blog; Cellulit

Anonymous said...

Way too they keep most of the little kids welcoming too.
Like You said, the group sang and danced through the fully set.



Also visit my page: http://ps3mania.pl/ -
Ps3Mania.pl -

Anonymous said...

Hey! Someone in my Myspace group shared this website
with us so I came to check it out. I'm definitely loving the information. I'm bookmarking and will be
tweeting this to my followers! Fantastic blog and wonderful style and design.

my homepage chris landry mortgage broker

«Oldest ‹Older   401 – 540 of 540   Newer› Newest»