{"id":15290926,"url":"https://github.com/azure/azuregraph","last_synced_at":"2025-10-20T03:30:54.176Z","repository":{"id":41472461,"uuid":"187733019","full_name":"Azure/AzureGraph","owner":"Azure","description":"R interface to Microsoft Graph REST API","archived":false,"fork":false,"pushed_at":"2023-09-06T07:23:43.000Z","size":274,"stargazers_count":32,"open_issues_count":1,"forks_count":15,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-01-30T13:51:09.604Z","etag":null,"topics":["azure-active-directory-graph-api","azure-sdk-r","microsoft-graph-api","r"],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Azure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-21T00:34:43.000Z","updated_at":"2024-10-30T21:51:19.000Z","dependencies_parsed_at":"2024-06-21T13:02:55.437Z","dependency_job_id":"bdb028d0-9bf7-44a2-b5eb-861907ca501b","html_url":"https://github.com/Azure/AzureGraph","commit_stats":{"total_commits":145,"total_committers":6,"mean_commits":"24.166666666666668","dds":"0.24137931034482762","last_synced_commit":"983aaaaaa778d9e1a6de440841fced178f4ae1a4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2FAzureGraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2FAzureGraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2FAzureGraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2FAzureGraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Azure","download_url":"https://codeload.github.com/Azure/AzureGraph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237254020,"owners_count":19279970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-active-directory-graph-api","azure-sdk-r","microsoft-graph-api","r"],"created_at":"2024-09-30T16:10:08.889Z","updated_at":"2025-10-20T03:30:48.752Z","avatar_url":"https://github.com/Azure.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AzureGraph \u003cimg src=\"man/figures/logo.png\" align=\"right\" width=150 /\u003e\n\n[![CRAN](https://www.r-pkg.org/badges/version/AzureGraph)](https://cran.r-project.org/package=AzureGraph)\n![Downloads](https://cranlogs.r-pkg.org/badges/AzureGraph)\n![R-CMD-check](https://github.com/Azure/AzureGraph/workflows/R-CMD-check/badge.svg)\n\nA simple interface to the [Microsoft Graph API](https://learn.microsoft.com/en-us/graph/overview). The companion package to [AzureRMR](https://github.com/Azure/AzureRMR) and [AzureAuth](https://github.com/Azure/AzureAuth).\n\nMicrosoft 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.\n\nThe 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\")`.\n\n\n## Authentication\n\nThe 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.\n\nSee the \"Authentication basics\" vignette for more details on how to authenticate with AzureGraph.\n\n## Sample workflow\n\nAzureGraph 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.\n\n```r\nlibrary(AzureGraph)\n\n# authenticate with AAD\n# - on first login, call create_graph_login()\n# - on subsequent logins, call get_graph_login()\ngr \u003c- create_graph_login()\n\n# list all users in this tenant\ngr$list_users()\n\n# list all app registrations\ngr$list_apps()\n\n# my user information\nme \u003c- gr$get_user(\"me\")\n\n# my groups\nhead(me$list_group_memberships())\n\n# my registered apps\nme$list_owned_objects(type=\"application\")\n\n# register a new app\n# by default, this will have a randomly generated strong password with duration 2 years\napp \u003c- gr$create_app(\"AzureR_newapp\")\n\n# get the associated service principal\napp$get_service_principal()\n\n# using it in conjunction with AzureRMR RBAC\nAzureRMR::get_azure_login()$\n    get_subscription(\"sub_id\")$\n    get_resource_group(\"rgname\")$\n    add_role_assignment(app, \"Contributor\")\n```\n\n---\n\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/Azure/AzureR\"\u003e\u003cimg src=\"https://github.com/Azure/AzureR/raw/master/images/logo2.png\" width=800 /\u003e\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazure%2Fazuregraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazure%2Fazuregraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazure%2Fazuregraph/lists"}