Skip to content

Commit b9fdfde

Browse files
authored
Merge pull request #446 from microsoftgraph/dev
1.1.0 Release
2 parents 7240485 + f757249 commit b9fdfde

File tree

124 files changed

+32124
-8328
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+32124
-8328
lines changed

.azure-pipelines/generate-auth-module-template.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ jobs:
6161
- task: CodeMetrics@1
6262
displayName: 'Run CodeMetrics'
6363
inputs:
64-
Files: '$(System.DefaultWorkingDirectory)//**//*Microsoft.Graph*.dll;$(System.DefaultWorkingDirectory)//**//*Microsoft.Graph*.exe'
65-
file: '$(System.DefaultWorkingDirectory)//**//*Microsoft.Graph*.dll;$(System.DefaultWorkingDirectory)//**//*Microsoft.Graph*.exe'
64+
Files: '$(System.DefaultWorkingDirectory)//**//Microsoft.Graph.Authentication.dll;$(System.DefaultWorkingDirectory)//**//Microsoft.Graph.Authentication.exe'
6665
continueOnError: true
6766

6867
- task: PowerShell@2

.azure-pipelines/integrated-pipeline.yml

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ trigger:
2727
- dev
2828
- releases/*
2929
- bugfixes/*
30+
- features/*
3031

3132
stages:
3233
- stage: ComputeVersion

README.md

+19-16
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Description | Module Name | PowerShell Gallery Link
77
----------------- | ----------------- | ------------------------
88
Microsoft Graph | `Microsoft.Graph` | [![Mg]][MgGallery]
99

10-
For a list of modules found in this repository, see the [Microsoft Graph Graph PowerShell modules](https://github.com/microsoftgraph/msgraph-sdk-powershell/wiki/MS-Graph-PowerShell-Modules) document.
10+
For a list of modules found in this repository, see the [Microsoft Graph PowerShell modules](https://github.com/microsoftgraph/msgraph-sdk-powershell/wiki/MS-Graph-PowerShell-Modules) document.
1111

1212
## Installation
1313
### PowerShell Gallery
@@ -18,45 +18,45 @@ All the modules are published on [PowerShell Gallery](https://www.powershellgall
1818
Install-Module Microsoft.Graph
1919
```
2020

21-
If you are upgrading from our preview modules, run `Install-Module` with AllowClobber and Force parameter to avoid command name conflicts:
21+
If you are upgrading from our preview modules, run `Install-Module` with AllowClobber and Force parameters to avoid command name conflicts:
2222
```ps
2323
Install-Module Microsoft.Graph -AllowClobber -Force
2424
```
25-
There are a set of samples in the `samples` folder to help in getting started with the library. If you have an older version of these modules installed, there are extra uninstall instructions in the [InstallModule](./samples/0-InstallModule.ps1) script.
25+
There is a set of samples in the `samples` folder to help in getting started with the library. If you have an older version of these modules installed, there are extra uninstall instructions in the [InstallModule](./samples/0-InstallModule.ps1) script.
2626

2727
## Usage
2828

2929
1. Authentication
3030

31-
The SDK supports two types of authentication: delegated access, and app-oly access.
31+
The SDK supports two types of authentication: delegated access, and app-only access.
3232
- Delegated access via Device Code Flow.
3333

3434
```ps
35-
Connect-Graph -Scopes "User.Read.All", "Group.ReadWrite.All"
35+
Connect-MgGraph -Scopes "User.Read.All", "Group.ReadWrite.All"
3636
```
3737
38-
- App only access via Client Credential with a certificate.
38+
- App-only access via Client Credential with a certificate.
3939
40-
The certificate will be loaded from `Cert:\CurrentUser\My\` store. Ensure the certificate is present in the store before calling `Connect-Graph`.
40+
The certificate will be loaded from `Cert:\CurrentUser\My\` store. Ensure the certificate is present in the store before calling `Connect-MgGraph`.
4141
42-
You can pass either `-CertificateThumbprint` or `-CertificateName` to `Connect-Graph`.
42+
You can pass either `-CertificateThumbprint` or `-CertificateName` to `Connect-MgGraph`.
4343
4444
```ps
4545
# Using -CertificateThumbprint
46-
Connect-Graph -ClientId "YOUR_APP_ID" -TenantId "YOUR_TENANT_ID" -CertificateThumbprint "YOUR_CERT_THUMBPRINT"
46+
Connect-MgGraph -ClientId "YOUR_APP_ID" -TenantId "YOUR_TENANT_ID" -CertificateThumbprint "YOUR_CERT_THUMBPRINT"
4747
```
4848
4949
or
5050
5151
```ps
5252
# Using -CertificateName
53-
Connect-Graph -ClientId "YOUR_APP_ID" -TenantId "YOUR_TENANT_ID" -CertificateName "YOUR_CERT_SUBJECT"
53+
Connect-MgGraph -ClientId "YOUR_APP_ID" -TenantId "YOUR_TENANT_ID" -CertificateName "YOUR_CERT_SUBJECT"
5454
```
5555
5656
2. List users in your tenant.
5757
5858
```ps
59-
Get-User -Top 10 -Property Id, DisplayName, BusinessPhones | Format-Table Id, DisplayName, BusinessPhones
59+
Get-MgUser -Top 10 -Property Id, DisplayName, BusinessPhones | Format-Table Id, DisplayName, BusinessPhones
6060
```
6161
6262
3. Filter a user in your tenant.
@@ -76,7 +76,7 @@ There are a set of samples in the `samples` folder to help in getting started wi
7676
5. Sign out of the current logged-in context i.e. app only or delegated access.
7777
7878
```ps
79-
Disconnect-Graph
79+
Disconnect-MgGraph
8080
```
8181
## API Version
8282
By default, the SDK uses the Microsoft Graph REST API v1.0. You can change this by using the `Select-MgProfile` command. This reloads all modules and only loads commands that call beta endpoint.
@@ -87,12 +87,15 @@ Select-MgProfile -Name "beta"
8787

8888
## Troubleshooting Permission Related Errors
8989

90-
When working with various operations in the Graph, you may encounter an error such as "Insufficient privileges to complete the operation." For example, this particular error can occur when using the `New-MgApplication` command if the appropriate permissions are not granted.
90+
When working with various operations in the Graph, you may encounter an error such as "Insufficient privileges to complete the operation." For example, this particular error can occur when using the `New-MgApplication` command if the appropriate permissions are not granted.
9191

9292
If permission related errors occur and the user you authenticated with in the popup has the appropriate permissions to perform the operation try these steps.
9393

94-
- You can try running `Disconnect-Graph`, then `Connect-Graph`. Then, run the code that encountered the permission issues to see if it works.
95-
- You can try running `Connect-Graph -ForceRefresh`. This will trigger a refresh of the access token in your cache. MSAL will only refresh the access token in your cache if it has expired (usually an hour), or if you explicitly refresh it via `-ForceRefresh`. Then, run the code that encountered the permission issues to see if it works.
94+
- You can try running `Disconnect-MgGraph`, then `Connect-MgGraph`. Then, run the code that encountered the permission issues to see if it works.
95+
- You can try running `Connect-MgGraph -ForceRefresh`. This will trigger a refresh of the access token in your cache. MSAL will only refresh the access token in your cache if it has expired (usually an hour), or if you explicitly refresh it via `-ForceRefresh`. Then, run the code that encountered the permission issues to see if it works.
96+
97+
## Known Issues
98+
- If you attempt to run `Connect-Graph` from the PowerShell ISE (integrated scripting environment) the command fails with an error "Device code terminal timed-out after {X} seconds". This is a known issue and it is recommended to use a PowerShell host other than the ISE.
9699

97100
## Issues
98101
If you find any bugs when using the Microsoft Graph PowerShell modules, please file an issue in our GitHub issues page.
@@ -109,4 +112,4 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT
109112
[Mg]: https://img.shields.io/powershellgallery/v/Microsoft.Graph.svg?style=flat-square&label=Microsoft.Graph
110113

111114
<!-- PS Gallery -->
112-
[MgGallery]: https://www.powershellgallery.com/packages/Microsoft.Graph/
115+
[MgGallery]: https://www.powershellgallery.com/packages/Microsoft.Graph/

config/ModuleMetadata.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"copyright": "© Microsoft Corporation. All rights reserved.",
77
"licenseUri": "https://aka.ms/devservicesagreement",
88
"projectUri": "https://github.com/microsoftgraph/msgraph-sdk-powershell",
9-
"iconUri": "https://raw.githubusercontent.com/microsoftgraph/g-raph/master/g-raph.png",
9+
"iconUri": "https://raw.githubusercontent.com/microsoftgraph/msgraph-sdk-powershell/po/release1.1.0/documentation/images/graph_color256.png",
1010
"tags": "MicrosoftGraph;Microsoft;Office365;Graph;PowerShell;GraphServiceClient;Outlook;OneDrive;AzureAD;GraphAPI;Productivity;SharePoint;Intune;SDK;",
1111
"releaseNotes": "See https://aka.ms/GraphPowerShell-Release.",
1212
"assemblyOriginatorKeyFile": "35MSSharedLib1024.snk",
13-
"version": "1.0.1"
13+
"version": "1.1.0"
1414
}

config/ModulesMapping.jsonc

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"Files": "^drives\\.|^shares\\.|^users.drive$|^groups.drive$",
1414
"Financials": "^financials\\.",
1515
"Groups": "^groups.group$|^groups.directoryObject$|^groups.conversation$|^groups.endpoint$|^groups.extension$|^groups.resourceSpecificPermissionGrant$|^groups.profilePhoto$|^groups.conversationThread$|^groupLifecyclePolicies\\.|^users.group$|^groups.directorySetting$|^groups.Actions$|^groups.Functions$",
16-
"Identity.DirectoryManagement": "^administrativeUnits\\.|^contacts\\.|^devices\\.|^domains\\.|^directoryRoles\\.|^directoryRoleTemplates\\.|^directorySettingTemplates\\.|^settings\\.|^subscribedSkus\\.|^contracts\\.|^directory\\.|^users.scopedRoleMembership$|^organization.organization$|^organization.organizationalBranding$|^organization.organizationSettings $|^organization.Actions$|^organization.extension$",
16+
"Identity.DirectoryManagement": "^administrativeUnits\\.|^contacts\\.|^devices\\.|^domains\\.|^directoryRoles\\.|^directoryRoleTemplates\\.|^directorySettingTemplates\\.|^settings\\.|^subscribedSkus\\.|^contracts\\.|^directory\\.|^users.scopedRoleMembership$|^organization.organization$|^organization.organizationalBranding$|^organization.organizationSettings$|^organization.Actions$|^organization.extension$",
1717
"Identity.Governance": "^accessReviews\\.|^businessFlowTemplates\\.|^programs\\.|^programControls\\.|^programControlTypes\\.|^privilegedRoles\\.|^privilegedRoleAssignments\\.|^privilegedRoleAssignmentRequests\\.|^privilegedApproval\\.|^privilegedOperationEvents\\.|^privilegedAccess\\.|^agreements\\.|^users.agreementAcceptance$|^identityGovernance.entitlementManagement$|^identityGovernance.Functions$|^identityGovernance.Actions$",
1818
"Identity.SignIns": "^organization.certificateBasedAuthConfiguration$|^invitations\\.|^identityProviders\\.|^oauth2PermissionGrants\\.|^riskDetections\\.|^riskyUsers\\.|^dataPolicyOperations\\.|^identity.identityUserFlow$|^trustFramework\\.|^informationProtection\\.|^policies\\.|^users.authentication$|^users.informationProtection$|^identity.conditionalAccessRoot$",
1919
"Mail": "^users.inferenceClassification$|^users.mailFolder$|^users.message$",
@@ -26,7 +26,7 @@
2626
"Search": "^search\\.|^external\\.",
2727
"Security": "^Security\\.",
2828
"Sites": "^sites.site$|^sites.itemAnalytics$|^sites.columnDefinition$|^sites.contentType$|^sites.drive$|^sites.list$|^sites.sitePage$|^users.site$|^groups.site$|^sites.Functions$|^sites.Actions$",
29-
"Teams": "^teams\\.|^chats\\.|^users.chat$|^appCatalogs$|^users.userTeamwork$|^teamwork\\.|^users.team$|^users.userTeamwork$|^groups.team$",
29+
"Teams": "^teams\\.|^chats\\.|^users.chat$|^appCatalogs.teamsApp$|^users.userTeamwork$|^teamwork\\.|^users.team$|^groups.team$",
3030
"Users": "^users.user$|^users.directoryObject$|^users.licenseDetails$|^users.notification$|^users.outlookUser$|^users.profilePhoto$|^users.userSettings$|^users.extension$|^users.oAuth2PermissionGrant$|^users.todo$",
3131
"Users.Actions": "^users.Actions$",
3232
"Users.Functions": "^users.Functions$"
9.54 KB
Loading

0 commit comments

Comments
 (0)