How to create a new user on Dynamics CRM Online through calling APIs - dynamics-crm-2011

I want to design an application to sync user information between local system and CRM online. I found we can't create user in CRM online through APIs directly as CRM on-premise. System said we only can add user through office 365 admin portal. But I have no idea about how to use office 365 APIs to create CRM online user. Did you guys encounter the situation before? Please help me, thanks!

Ok, let me answer my question. Right now if we want to operate Dynamics CRM Online User or License information, we need to operate Active Directory Graph Service associated with CRM Online. This Service is a web api based service. We can get the example code on "http://visualstudiogallery.msdn.microsoft.com/7e947621-ef93-4de7-93d3-d796c43ba34f", and current there is one helper library can be used you guys can download it on http://code.msdn.microsoft.com/windowsazure/Windows-Azure-AD-Graph-API-a8c72e18.

Related

How to get MyTeams of CurrentUser in Office 365(Dynamics 365) Environment from Powerapps?

How to get MyTeams of CurrentUser in Office 365(Dynamics 365) Environment from Powerapps ?
We are trying to check whether the CurrentUser is a member of a particular Team or not. Teams are added from Dynamics 365 environment.
We can get all existing teams by adding 'Teams' entity into Datasource.But we need currentUser's team. Powerapps showing "MyTeams" option in Entity page. But no such option available in code.
Teams in Dynamics 365 enviroment
Myteams Option in Powerapps
Like I answered in your another question, we will be doing such queries using web api in client side form scripting.
This TeamMembership entity is not listing in PowerApps D365 connector, so alternate solution is custom connector to consume the needed crm web api call. Read more

Is there any Node js or REST API to create new users in office 365.

I have purchased office 365 essentials plan. I have got an admin account. Office provides user interface to add new users under this main admin account.
What I need is I want a Node js or REST API to create users on this account. I have googled well, can't met anything like this. Anyone can provide any samples on this. Any help would be appreciable.
Office 365 Users are hosted in the background by Azure Active Directory. I believe you should be able to create new accounts for your Office 365 programmatically using the Azure Active Directory Graph API, or probably even better, using the Microsoft Graph API.
Check out the documentation here:
https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/user_post_users
You should be able to get a jump-start using our public samples located here:
https://graph.microsoft.io/en-us/code-samples-and-sdks
I hope this helps!

how an utility application connects with all three deployment types of CRM

I am working with an utility application which has user authentication(i.e. it takes username password from users as input). Previously I worked with CRM online. Now requirement is this utility should be able to connect all three deployment types of CRM (i.e. Onpremise, Online, IFD).I am not sure how to do it. I was using crmservice.cs and deviceidmanager.cs for connection with CRM.
From other online resources I found that in connection string if I add Authentication Type="Integrated"/"AD"/"SPLA"/"Passport" , it should work.
So If I write my connection string like
connectionString="Authentication Type="Integrated";Data Source= LINE500\sage;Initial Catalog=cs3live; Integrated Security=false; User Id=XXXXXXXX;Password=XXXXXXXX"
Is this gonna work? FYI, I have only CRM online trial account to verify my code.So I need your help on this.
Thanks.
a CRM Online environment can use Windows Live ID or Office 365 authentication, DeviceID and DevicePassword are necessary only when connecting with Windows Live ID credentials. So you need to know which authentication type is in use in your CRM.
To be able to connect to different environments I suggest to use the Simplified Connection, you can find more information here:
https://stackoverflow.com/a/15930366/2191473
and here:
Sample: Simplified Connection Quick Start using Microsoft Dynamics CRM

Retrieve Office 365 directory information from SharePoint online

I was wondering if is it possible to retrieve Office 365 directory information (i.e. security group membership) from SharePoint online programmatically (for example through a workflow custom action)?
By the way, I am not looking for retrieving Sharepoint group membership information.
I know the custom development is pretty limited with SharePoint online since the code has to run as a sandbox solution. Is there any web service or any another solution available?
I have been looking for information about this matter but I could not find anything so I guess there is no way to do this.
In our case there is an active directory synchronized with office 365. So we will use a powershell script to read data from AD and update a sharepoint list every day.
Then we will be able to use this data from custom code (like a workflow custom action).

How to connect SharePoint Online with Dynamics CRM Online using BDC?

I am trying to connect SharePoint Online with Dynamics CRM Online using BDC, but I'm not getting any results.
I am trying to use Accounts from CRM in SharePoint Online like a list.
When I have 100 accounts (customers) in CRM I want to export these accounts to SharePoint Online like a list. And when I will bed edited account in CRM the elements in the list will be updated (when I edited element on SharePoint list it will update in CRM).
Is there any possibility to connect in this way? If there is then what I should use - SharePoint Designer 2010, Visual Studio or do this on web interface?
Girish Raja provides a great overview on how to integrate CRM Online and SharePoint Point via BCS. His MSDN blog post includes a link to his video presentation from TechEd in May (go to minute 35 in video) along with a link to the source code/instructions. His demo uses SharePoint on-premise but mentions that it will work with SharePoint Online once BCS is enabled. (which it is now).
According to this:
Msdn Blog: Microsoft Dynamics CRM integration with SharePoint Online is here
... this is how to do it:
Your Microsoft Dynamics CRM System Administrator must install the Microsoft Dynamics CRM 2011 List Component
Once enabled, the Microsoft Dynamics CRM user can open an Account
Click on Documents – If the Account does not have a corresponding Document Library in SharePoint Online one is automatically created
Unfortunately this cannot be done at this time - http://community.office365.com/en-us/f/154/t/2301.aspx
See codeulike's answer for more up to date information.

Resources