All Projects → Azure → AzureGraph

Azure / AzureGraph

Licence: Unknown, MIT licenses found Licenses found Unknown LICENSE MIT LICENSE.md
R interface to Microsoft Graph REST API

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to AzureGraph

tod0
A Terminal Client for Microsoft To-Do
Stars: ✭ 93 (+232.14%)
Mutual labels:  microsoft-graph-api
microsoft-he4rt
A 2 day challenge to develop any project using Microsoft Graph and Azure
Stars: ✭ 15 (-46.43%)
Mutual labels:  microsoft-graph-api
BlazorGraphApi
Blazor Server App with Azure AD Authentication, that calls the Microsoft Graph API on-behalf of the signed-in user.
Stars: ✭ 28 (+0%)
Mutual labels:  microsoft-graph-api
powershell
PnP PowerShell
Stars: ✭ 326 (+1064.29%)
Mutual labels:  microsoft-graph-api
active-directory-dotnet-graphapi-b2bportal-web
Demonstration/prototype of B2B self-service signup, signup approvals, and profile editing.
Stars: ✭ 64 (+128.57%)
Mutual labels:  microsoft-graph-api
QuickTeams
Download, Clone, Archive, Un-Archive your Microsoft Teams and manage the apps you've installed to them
Stars: ✭ 31 (+10.71%)
Mutual labels:  microsoft-graph-api
ms-identity-mobile-apple-swift-objc
An iOS sample in Swift that authenticates Microsoft Account and Azure AD users and calls the Graph API using OAuth 2.0
Stars: ✭ 61 (+117.86%)
Mutual labels:  microsoft-graph-api
Optimized.Mga
PowerShell module for Microsoft Graph REST API. To optimize, speed, and bulk use Microsoft Graph API in PowerShell. You can can enter your own URL so you aren't restricted to the limitations of the official Microsoft Module. Includes ways to speed up the process, handle throttling, and re-authenticate after the token expires.
Stars: ✭ 29 (+3.57%)
Mutual labels:  microsoft-graph-api
AzureAuth
R package for OAuth 2.0 authentication with Azure Active Directory
Stars: ✭ 29 (+3.57%)
Mutual labels:  azure-sdk-r
AzureStor
R interface to Azure storage accounts
Stars: ✭ 51 (+82.14%)
Mutual labels:  azure-sdk-r

AzureGraph

CRAN Downloads R-CMD-check

A simple interface to the Microsoft Graph API. The companion package to AzureRMR and AzureAuth.

Microsoft Graph is a comprehensive framework for accessing data in various online Microsoft services. Currently, this package aims to provide an R interface only to the Azure Active Directory part, with a view to supporting interoperability of R and Azure: users, groups, registered apps and service principals. Like AzureRMR, it could potentially be extended to cover other services.

The primary repo for this package is at https://github.com/Azure/AzureGraph; please submit issues and PRs there. It is also mirrored at the Cloudyr org at https://github.com/cloudyr/AzureGraph. You can install the development version of the package with devtools::install_github("Azure/AzureGraph").

Authentication

The first time you authenticate with a given Azure Active Directory tenant, you call create_graph_login() and supply your credentials. R will prompt you for permission to create a special data directory in which to save the obtained authentication token and AD Graph login. Once this information is saved on your machine, it can be retrieved in subsequent R sessions with get_graph_login(). Your credentials will be automatically refreshed so you don't have to reauthenticate.

See the "Authentication basics" vignette for more details on how to authenticate with AzureGraph.

Sample workflow

AzureGraph currently includes methods for working with registered apps, service principals, users and groups. A call_graph_endpoint() method is also supplied for making arbitrary REST calls.

library(AzureGraph)

# authenticate with AAD
# - on first login, call create_graph_login()
# - on subsequent logins, call get_graph_login()
gr <- create_graph_login()

# list all users in this tenant
gr$list_users()

# list all app registrations
gr$list_apps()

# my user information
me <- gr$get_user("me")

# my groups
head(me$list_group_memberships())

# my registered apps
me$list_owned_objects(type="application")

# register a new app
# by default, this will have a randomly generated strong password with duration 2 years
app <- gr$create_app("AzureR_newapp")

# get the associated service principal
app$get_service_principal()

# using it in conjunction with AzureRMR RBAC
AzureRMR::get_azure_login()$
    get_subscription("sub_id")$
    get_resource_group("rgname")$
    add_role_assignment(app, "Contributor")

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].