Sync CRM Security with Sharepoint

I am a CRM Developer. We had a requirement to sync security roles of CRM with groups of sharepoint. For that I have create a mapping table where I have mapped CRM security roles with Sharepoint Groups. I am creating a plugin for CRM. We want when a user
is added to a CRM team then the same user should be added to corresponding sharepoint group and vice versa. I have the sharepoint group name and user logon. We want:-
1. If a user is added to CRM then my plugin will check whether the user exists in sharepoint if not then create it.
2. Add user to the desired group in sharepoint. I already have group name.
I am new to sharepoint therefore I will appreciate if someone can explain me in details what I have to do.
Thank you
Regards Faisal

Hi,
According to your description, my understanding is that you want to sync the user between CRM system and SharePoint.
I suggest you can use Client Object Model to add user to group. 
For the error message, you need to load the groupcollection firstly before you loop it like below:
ClientContext ctx = new ClientContext(“http://foo”);
//get the groups
GroupCollection grps = ctx.Web.SiteGroups;
//load up the group info
ctx.Load(grps);
//execute the query
ctx.ExecuteQuery();
// enumerate
foreach (Group grp in grps)
// do something with each group
More information:
Using the SharePoint 2010 Client Object Model
How to: Work with Users and Groups
Thanks
Best Regards
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • Dyanmics CRM integrated with sharepoint 2010 foundation - new created account folder can not trigger sharepoint workflow.

    I integrated MS CRM 2013 with SharePoint foundation 2010 for document management. integration works.
    Now I need to create several subfolders and set proper permission on each folder. So, I created a workflow to do it automatically. It works when I manually create a new folder under SharePoint account, or I manually run it for an account folder. Thus, sharepoint
    workflow works as I expected.
    However, when I access Account's document from CRM (first time), sharepoint would create an folder for this account. In this case, the workflow doesn't work. and it show error: "Failed on Start(retrying)".
    Anyone has experience on similar issues or have clue how to trace this error?

    Hi Justin,
    From your description, the issue might be related to the workflow created by visual studio.
    Could you please try to locate error message in workflow report or ULS log:
    https://technet.microsoft.com/en-in/library/cc298927%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    also debug the workflow per:
    http://blogs.msdn.com/b/philloth/archive/2009/01/19/how-to-debug-a-workflow-with-visual-studio.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Security settings for CRM Integration with SharePoint

    I have successfully integrated CRM 2015 and SharePoint 2013, both on-premise. I can see the SharePoint iframe on my CRM.
    Next, is to set up the security. Only users with access to CRM record can access the respective SharePoint folders.
    After I set up the security in SharePoint, i.e, by only giving permission to the specific folder and not the root site's Visitors group, the iframe on CRM side displays an error. It seems that the iframe is trying to access the root URL first, to which the
    users don't have access, hence the error.
    Am I missing something or is it not possible? Little explanation is given on MSDN about the security settings.
    Another question, is there any plan for Microsoft to support server based integration for on-premise version?

    crm does not give the rights through to sharepoint. u have the option to open sharepoint external with list component where you must take away the sharepoint rights and for us never a usefull option. We created custom application internal and did not published
    sharepoint, we programmed so that documents are visible in iframe via a IIS website and looks to the logged-in user´s and only the documents are visible which belongs to his security role. its a lot of work but we found that it is also faster then the list
    component.
    gruss Daniel Ovadia MBSS - Microsoft Dynamics CRM MCNPS

  • Where is Integration Status field is to Sync CRM OD with EBS

    Hi All,
    I am new to CRM OD.
    We are using PIP to integrate CRM OD with EBS.
    How can we mark the new account being created to be sync with EBS. I dont see any field as such.
    Thanks
    Sai

    Hi,
    According to your description, my understanding is that you want to sync the user between CRM system and SharePoint.
    I suggest you can use Client Object Model to add user to group. 
    For the error message, you need to load the groupcollection firstly before you loop it like below:
    ClientContext ctx = new ClientContext(“http://foo”);
    //get the groups
    GroupCollection grps = ctx.Web.SiteGroups;
    //load up the group info
    ctx.Load(grps);
    //execute the query
    ctx.ExecuteQuery();
    // enumerate
    foreach (Group grp in grps)
    // do something with each group
    More information:
    Using the SharePoint 2010 Client Object Model
    How to: Work with Users and Groups
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Failed to Sync OneNote 2013 with Sharepoint 2013 - Saying Required Properties option is selected

    Hi All
    I am trying to integrating OneNote 2013 with Sharepoint 2013, but whatever i do it came up as:
    We can't sync because the Required Properties option is selected on the server. Disable the option, or move the notebook to a new location. (Error code: 0xE0000B9B)
    I've followed knowledge based and turn off the Required Properties as i can see off, but error still showing up.
    Has anyone encountered this error before?
    Thanks a lot for any contribution.

    HI G_Virus,
    Please check if any field is set as required, then set it to optional for the OneNote content type from the problem library.
    And also check Jannifer's reply mentioned that compare this content type fields to the OneNote without issue from other site collection or farm per the following post, see if it helps.
    http://office.microsoft.com/en-us/onenote-help/resolve-document-library-errors-when-using-onenote-with-sharepoint-HA102647129.aspx
    http://social.technet.microsoft.com/Forums/office/en-US/a0e8cb4e-6daa-4ef8-a856-337da837c5db/sync-error-to-sharepoint-2010-library-with-revisions-checkinout-not-enabled
    Thanks
    Daniel Yang
    TechNet Community Support

  • Cannot sync Microsoft Sharepoint workspace 2010 with Sharepoint 2013 site

    I keep getting the below error message when I try to sync a doc lib from a sharepoint 2013 site with sharepoint workspace 2010.
    The field "AppAuthor" contains a lookup list "AppPrincipals" that cannot be resolved. The target list may not be part of the site
    I have uninstalled Lync 2013, uninstalled and re-installed office 2010, 2687364 hotfix yet the issue still persists.
    Any help will be greatly appreciated
    Kind Regards
    Louis
    thanks

    Hi,
    Is this issue only occur in one client machine? Can other machines installed SharePoint Workspace 2010 works when perform syncing?
    As you have reinstalled the 2687364 hotfix and the issue still exists, I suggest you install Office 2010 SP2 to see if it can work:
    32-bit
    http://www.microsoft.com/en-us/download/details.aspx?id=39667
    64-bit
    http://www.microsoft.com/en-us/download/details.aspx?id=39647
    Feel free to reply with the test result if the issue still exists.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Unable to sync with SharePoint task list

    Unable to sync with SharePoint task list
     The SharePoint site is invalid - I can hit the site just fine through IE
    - The SharePoint site is unavailable. Not so since I can naviagte to it just fine with IE
    - The user does not have full or design permissions in the SharePoint site -- My permission level is "Full Control"
    All inside a corporate Lan.  This is a first time setup? Any ideas?

    Hi
    If you open up the project file from within the sharepoint list and then click sync what happens?

  • Are theCRM training courses which would help me with building CRM security

    Hello,
        We are implementing CRM  and I am totally new to CRM. To build proper security around CRM, I am trying to find courses which gives me an understanding about CRM and the security implementation.  In addition to R/3 security courses, there are security specific courses for BW and HR which I am already familiar with.
    Can any one suggest me with relevant CRM courses?
    Thanks,

    Dear Prasanthi,
    Check the below thread which gives you some useful documents.
    CRM Security
    There are several threads with similar query in this forum. So please do a search before posting in the forums that will obviously save your time.
    Regards,
    Edited by: Lakshmi Venigala on Dec 4, 2009 5:31 PM
    Edited by: Lakshmi Venigala on Dec 4, 2009 5:32 PM

  • Office 365: Prgramtically sync Calendar with SharePoint team site calendar

    Hello everyone,
    I need to sync office 365 Calendar with SharePoint team sites Calendars. We have SharePoint online site which having multiple sub sites, each sub site has a calendar control and we need calendar controls need to be sync with the outlook calendar available
    on top bar of office 365.
    We need to do it programmatically as we have more then 200 hundred sub sites, please guide me on this that how it is possible using developer app or PowerShell commands.

    I think it might help to clarify what you mean. When you say "Office 365 Calendar", what you really mean is the Calendar associated with whomever is logged in, stored in Exchange. When you see the "Calendar" link in the little bar at the top of the page,
    that's actually just a link to the Outlook Web Access calendar for a particular user's calendar stored in the Office 365 Exchange server. It's exactly the same calendar that would show up if a user had Outlook installed on their local computer and opened it
    up and looked at the calendar.
    That being said, you aren't going to want to synch every calendar in your whole SharePoint site with a single user's calendar. I think there are a couple approaches for you:
    Create a calendar overlay in SharePoint, which displays other calendars on the current calendar view. Unfortunately, there's a limit as to how many calendars you can do this for, it's far less than 200.
    Allow users to create calendar overalys in Outlook. This is the same idea as what you're doing in SharePoint, except users are doing this within Outlook. Again, adding 200 overlays isn't practical.
    You can try creating an additional company calendar in Exchange that's not tied to a particular user, but then you'll have to run a timer job to keep the Outlook calendar in synch with the SharePoint calendar. This is a lot more cumbersome than just displaying
    the SharePoint calendar, since you're physically copying events over to the Outlook calendar. If you do that, you personally are responsible for keeping the two calendars synched up, rather than just displaying an Exchange calendar in SharePoint, or displaying
    a SharePoint calendar in Outlook.
    You might looking into third party tools such as
    http://www.boostsolutions.com/calendar-rollup-feature-list.html. (I haven't tried that product, it just looks like it might be the type of thing to check out.
    If I have any advice, I would recommend as much as possible creating views of calendars, not actually trying to synch data, unless you're doing a one-way synch. (Synching calendar data can be a little bit difficult because you have reoccurring events to
    take into account.)
    Blog:
    blog.beckybertram.com |
    RSS | @beckybertram |
    SharePoint 2010: Six-in-One

  • Document properties aren't syncing up with SharePoint in Record Center Libraries

    In a record center's document/record library, I'm not able to link word document properties with sharepoint item attributes using "Quick Parts" as I can with Document Libraries.
    Could this be because of a separate issue with how the Record Center handles properties?

    Hi Dnerd,
    We have found this issue. We can reproduced this issue as the followings:
    Create a Team site, create a document library
    In the library, create a column called Test1, then upload a document to the library
    Open the document with office app. In the Quick Parts->Document property, we can find the name of the custom column Test1
    Create a Record Center, create a custom column Test2 in Record library, then upload a document to the library
    Open the document with office app. In the Quick Parts->Document property, we can not find the name of the custom column Test2
    Then create a new library in the Record Center, and create a column for the library. Do a same test, the result is same with the result in Record library.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Performance Scorecard - unable to sync security with Shared Services

    Hi all,
    after successful installation of HPS we have provisioned users in Shared Services console for using HPS application. Now we need to sync HPS application with HSS. We have logged as "admin" to run this sync but we are missing Administration menu.
    Could anyone give us an advice how to fix it?
    Thanks,
    Vladino

    Hi Amith,
    Before configuring EAS with Shared Services, please verify following:-
    1- Installaed relational database repository (SQL Server, Oracle, DB2).
    2- Create a database called hypdb in database repository.
    3- Create user called hypuser with valide password who has access on this database.
    4- Also ensure service related to database repository is running.
    Now try to configure EAS with SS. Hope it will help you.
    Atul K,

  • The goal is to synchronize an excel sheet using Microsoft Excel 2010 with Sharepoint 3.0

    The goal is to synchronize an excel sheet using Microsoft Excel 2010 with Sharepoint 3.0. We have already installed an add-in (Excel 2007 Add-in: Synchronizing Tables with SharePoint Lists) that was supposed
    to help the synchronization of excel to Sharepoint, but it did not work. We would like to synchronize information about a calendar from excel to Sharepoint 3.0, so every time a change is made in excel it automatically updates in Sharepoint.

    ootb, changes in excel don't sync with a SharePoint list, the other way around is possible.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Synchronizing Microsoft Excel 2010 with Sharepoint 3.0

    We would like to synchronize calendar entries from MS Excel 2010 (64-bit) to SharePoint 3.0, so that every time a change is made in Excel, it automatically syncs in SharePoint 3.0.  We have already installed
    an add-in (Excel 2007 Add-in: Synchronizing Tables with SharePoint Lists) that was supposed to help the synchronization of Excel to SharePoint, but it did not work.  ANY IDEAS?

    ootb, changes in excel don't sync with a SharePoint list, the other way around is possible.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Can't open sharepoint site with sharepoint designer 2010

    Hi there,
    We've installed SP Foundation + SP Server 2010 and set up some sites.
    when we tried to open it with SP Designer 2010, it fails and gave us some errors.
    opening SPD through site actions :
    unable to open website. possible causes:
    1. the web server may not have sharepoint server installed
    2. the web server may be temporarily out of service
    3. if you are connecting through a proxy server, the proxy settings may be incorrect
    4. an error may have occured in the web server
    opening sharepoint site through SPD:
    the folder 'http://mysp.domain.com/site/default.aspx' isn't accessible. the folder may be located in an unavailable location, protected with a password, or the filename contains a / or \.
    the thing is ... we have no problem with sharepoint designer 2007.
    any idea?

    Hi p.andrew,
    If you want to open the site use SPD, you should enable the Client Integration for the web application at first.
    Here are the steps:
    1.      
    Go to this location : “Central administration” > “Security” > “Specify authentication provider”;
    2.      
    Select the Web Application which you want to edit use SPD (SharePoint Designer 2010), and click the “Default” below the ‘Zone’;
    3.      
    Select the “Yes” radio button
     in the Client Integration section, and click the ‘Save’ Button;
    4.      
    Close and re-Open the IE;
    5.      
    Try to Open the site using SPD.
    More information about this:
    http://snahta.blogspot.com/2009/01/folder-may-be-located-in-unavailable.html
    http://skurocks.wordpress.com/2009/06/26/enable-client-integration-user-permissions-for-web-application-%E2%80%93-caution/

  • How to use OneDrive for Business mobile app with SharePoint 2013 on-premise?

    Hi All,
    I have a SharePoint 2013 (with latest December updates) that host a dedicated personal web site for users.
    The OneDrive portal works fine and users are able to sync their files with the OneDrive client for Windows.
    Now I want to test the OneDrive for Business mobile app on Android, but there is no option to specify the "personal" portal URL.
    It asks only for domain credentials.
    Does I need to configure specific records on my public DNS to allow mobile users to sync their files?
    Thanks

    I can confirm that with iOS you can connect to your SharePoint server through the advanced options.
    But the very strange thing is that the OneDrive version for Windows Phone 8.1 is limited as the Android version.
    This has no sense.
    Why does Microsoft should limit the Business functions on its mobile operating system, and not on iOS?
    Another strange thing is that configuring my Exchange account, Windows Phone 8.1 informed me that it has connected OneDrive for business (but is a fake information).
    See attached image.
    If I open the built-in OneDrive app, it give me the option to add a OneDrive for business account, but is only for Office 365 users (like with the Android version).
    I thing that Microsoft should let at least to Windows Phone users to connect to on-premise SharePoint sites.

Maybe you are looking for