How to get Office 365 service location via API - api

I am trying to find the region of an Office 365 service. Microsoft's Office 365 documentation states that the data storage regions are disclosed to the customer.
Is it possible to find a service's region via an API request?
I've been looking through documentation on the Service Communications API, the reporting web service, and the unified API, but have found no mention on how to get the service's region.
Thanks!

There currently isn't an API to get the service region.
You can get this information using powershell:
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
Get-Mailbox -Identity magrom#contoso.onmicrosoft.com | fl
You can look at the OrganizationId field to see which region your tenant is in.

Related

Call Bigquery REST API using Service Account

Is there a way to call a Bigquery Rest API using service account? I need to push data from my powerapp to bigquery and I find the only way out is to create a custom connector. But due to org policies I am constrained to use a service account for authentication. I could not figure out a way to create a custom connector that authenticates through a service account. Following is my post on powerapps forum. Any help would be highly appreciated.
https://powerusers.microsoft.com/t5/Connector-Development/Big-query-connector-with-Service-Account-Authentication/m-p/1853380#M1739
Thanks,
Haripriya
Currently I am able to call BQ get api from a sample dataset with personal gmail credentials, but I get authentication error when I try with my org login. It is possibly because my org userId would not have permissions to query the API. I will have to use the service account that has the permissions. But I could not figure a way out to authenticate via a service account.

How to Authenticate to Azure Active Directory Graph API on a Users behalf?

I have setup an AD in Windows Azure and created some users as well. I have also registered/created an application inside AD for third party application to access API(using Client and Secret ID).
I have followed the steps listed in the below links for authenticating to Graph API :
Authenticating to the Graph API
Getting an Application ID and Password for Authenticating to the Graph API
But when i tried with my client and Secret ID i am getting "Invalid Client error" message .
Error validating credentials. Invalid client secret is provided.
Also is it possible to Authenticate to Graph API on a Users behalf (By providing Client Credentials of a User inside AD).
Any help is appreciated.
The response from Azure ActiveDirectory will contain an id_token that contains the user's email in the UPN field. If you use the ADAL library or the libraries from Office 365 API tools http://blogs.msdn.com/b/officeapps/archive/2014/03/12/announcing-office-365-api-tools-for-visual-studio-preview.aspx, this information is available in the object model.

Utilize Azure Graph API for SharePoint Online User management

Let's say I have SharePoint Online subscription, hence I can manage own *.onmicrosoft.com domain and users/groups connected with it.
As far as I understand, the storage behind SPO where users and groups reside is an Azure AD.
I had a thought that the only way to manage these users/groups remotely is using PowerShell module for Microsoft Online. And now I wounder whether Azure Graph API can be used for purposes of retrieving users and group members from the SPO? I have no Azure subscription, is there a way to utilize Azure Graph API without Azure subscription, having only SPO subscription?
Ok, turns out it is possible. Briefly steps are the following:
Create a service principal that will serve as 'contact point' with your external application (here is a good start point); I've used symmetric key authorization;
Add a newly created service principal to the 'Company Administrator' role;
Look at the azurecoder's article and check out his comprehensive example of using Graph API: https://github.com/azurecoder/azure-activedirectory; this code correctly deals with authentication parameters, like constructing proper service realm.
After that I was able to grab users, groups and users membership information for SPO instance without creating a Azure AD subscription.

Which Google API's can be accessed using the access-token obtained using Google Service Account

Referring to the document https://developers.google.com/accounts/docs/OAuth2ServiceAccount, was able to obtain an access-token.The above mentioned document doesn't provide any details regarding the API's that can be accessed using Service Account.Can anyone list the API's which can be accessed using access-token obtained from Google service account?
Unfortunately, we don't have an exhaustive list of the support in this area. In general, you should be able to access a Google API if that API does not require the user to do something in a web interface to configure their account before doing API access. Service Accounts can't log in. So if the service needs some interactive input from a user on a Google wesite, often their APIs will not work with Service Accounts. Hope this helps.

SharePoint 2010 Calendar overlay feed from Exchange problems

So SharePoint 2010 has this handy new calendar overlays feature which allows you to render up 10 other calendars inside of one master SharePoint calendar. There is an option to pull from Exchange calendar as well. The only parameters it provides is the OWA url and the OWA web service url.
We use Exchange online and it isn't working whatsoever. I don't see any fields that store the credential information to connect to Exchange anywhere, and we get back a message saying that there is no email address configured in the profile (there really is). Documentation on the web is sparse for this. My questions are:
Is there a place where I can set credentials for this connection (if so where)?
Can I have it link to shared group calendars in Exchange not just an individuals calendar?
Will this work with MS hosted Exchange online?
I eliminated the "no email address configured" message by adding my exchange email to my SharePoint user profile.
It should pass the current user's credentials (used to connect to SharePoint) through the source services.
So far, I've been unable to connect to shared calendars in Exchange successfully.