To say good by year 2013 with great learning for SharePoint.
Join Us
https://www.facebook.com/events/259036634265291/?previousaction=join&source=1
https://www.anymeeting.com/AccountManager/RegEv.aspx?PIID=EA51D987804839
Posted by Usama Wahab Khan at 1:25 PM 1 comments
Labels: Dev Saturday UAE, SharePoint 2013, Usama wahab khana
Microsoft, 8, Dubai, AE |
Order tickets via Eventbrite: http://www.eventbrite.com/ Agenda Introduction to App Module for Developers. New SharePoint Client API Set Rest vs CSOM Demos Html 5 Cloud Business App with Visual Studio 2013 Light switch. Demo |
Posted by Usama Wahab Khan at 5:39 AM 0 comments
Labels: Dev Saturday UAE, SharePoint 2013, Usama wahab khana
//Add User in SharePoint Groups
public void addUserToGroup(string groupName, string useName)
{
string strUrl = "http://MySites:9091/";
using (SPSite site = new SPSite(strUrl))
{
using (SPWeb web = site.OpenWeb())
{
try
{
web.AllowUnsafeUpdates = true;
SPUser spUser = web.EnsureUser[userName];
if (spUser != null)
{
SPGroup spGroup = web.Groups[groupName];
if (spGroup != null)
spGroup.AddUser(spUser);
}
}
catch (Exception ex)
{
throw ex;
}
finally
{
web.AllowUnsafeUpdates = false;
}
}
}
}
ensure that user have permission to execute this method.
Helpful Link and Ref:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.ensureuser.aspx
http://msdn.microsoft.com/en-us/library/office/ms414400.aspx
http://gallery.technet.microsoft.com/office/Bulk-remove-Unique-bddd8764
Posted by Usama Wahab Khan at 2:49 PM 0 comments
Labels: Share Point, SharePoint 2010, SSOM
Posted by Usama Wahab Khan at 6:53 AM 0 comments
Labels: SharePoint 2013, SharePoint Apps, UAE SharePoint, Usama wahab khana
I am Micorosoft MVP, MCT for Cloud , Data and AI | Chief Technology Officer @ evolution|AI Architect | Speaker | Blogger | Author | AI, Data, Cloud, Generative AI entusiast | Leader SPUAEUG/AIUAE Based in UAE About Me