You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,15 @@
1
-
# Microsoft Graph PowerShell SDK (alpha)
2
-
The Microsoft Graph PowerShell SDK is a collection of PowerShell modules that contain cmdlets for calling Microsoft Graph.
1
+
# Microsoft Graph PowerShell SDK Preview
2
+
The Microsoft Graph PowerShell SDK is a collection of PowerShell modules that contain cmdlets for calling Microsoft Graph.
3
3
4
-
## Installing the Microsoft.Graph.Beta Module
4
+
## Installing the Microsoft.Graph Module
5
5
6
-
In the future, the modules will be published to the PowerShell Gallery, however in the short term they are hosted on our own nuget feed. Use the following commands to register repository and then install the `Microsoft.Graph.Beta` module from there.
6
+
The modules are now published on the PowerShell Gallery. Installing is as simple as:
There are a set of samples in the `samples` folder to help getting started with the library.
12
+
There are a set of samples in the `samples` folder to help getting started with the library. If you have an older version of these modules installed, there are uninstall instructions in the [InstallModule](./samples/0-InstallModule.ps1) script.
18
13
19
14
## Generate Module
20
15
@@ -134,3 +129,12 @@ There are a set of samples in the `samples` folder to help getting started with
134
129
```ps
135
130
Disconnect-Graph
136
131
```
132
+
133
+
## Troubleshooting Permission Related Errors
134
+
135
+
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-Application` command if the appropriate permissions are not granted.
136
+
137
+
If permission related errors occur and the user you authenticated with in the popup has the appropriate permissions to peform the operation try these steps.
138
+
139
+
- You can try running `Disconnect-Graph`, then `Connect-Graph`. Then, run the code that encountered the permission issues to see if it works.
140
+
- 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.
description: Calculated relationship identifying documents shared with a user. Documents can be shared as email attachments or as OneDrive for Business links sent in emails.
description: 'Calculated relationship identifying documents viewed and modified by a user. Includes documents the user used in OneDrive for Business, SharePoint, opened as email attachments, and as link attachments from sources like Box, DropBox and Google Drive.'
1463
1466
example:
1464
1467
id: string (identifier)
1465
1468
trending:
@@ -1508,6 +1511,7 @@ components:
1508
1511
properties:
1509
1512
id:
1510
1513
type: string
1514
+
description: Read-only.
1511
1515
example:
1512
1516
id: string (identifier)
1513
1517
microsoft.graph.trending:
@@ -1518,6 +1522,7 @@ components:
1518
1522
properties:
1519
1523
weight:
1520
1524
type: number
1525
+
description: 'Value indicating how much the document is currently trending. The larger the number, the more the document is currently trending around the user (the more relevant it is). Returned documents are sorted by this value.'
description: 'The date and time the file was last shared. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: 2014-01-01T00:00:00Z. Read-only.'
1599
1605
format: date-time
1600
1606
nullable: true
1601
1607
sharingSubject:
1602
1608
type: string
1609
+
description: The subject with which the document was shared.
1603
1610
nullable: true
1604
1611
sharingType:
1605
1612
type: string
1613
+
description: 'Determines the way the document was shared, can be by a ''Link'', ''Attachment'', ''Group'', ''Site''.'
description: The item's media type. Can be used for filtering for a specific file based on a specific type. See below for supported types.
1626
1636
nullable: true
1627
1637
mediaType:
1628
1638
type: string
1639
+
description: The item's media type. Can be used for filtering for a specific type of file based on supported IANA Media Mime Types. Note that not all Media Mime Types are supported.
1629
1640
nullable: true
1630
1641
previewImageUrl:
1631
1642
type: string
1643
+
description: A URL leading to the preview image for the item.
1632
1644
nullable: true
1633
1645
previewText:
1634
1646
type: string
1647
+
description: A preview text for the item.
1635
1648
nullable: true
1636
1649
containerWebUrl:
1637
1650
type: string
1651
+
description: A path leading to the folder in which the item is stored.
1638
1652
nullable: true
1639
1653
containerDisplayName:
1640
1654
type: string
1655
+
description: 'A string describing where the item is stored. For example, the name of a SharePoint site or the user name identifying the owner of the OneDrive storing the item.'
1641
1656
nullable: true
1642
1657
containerType:
1643
1658
type: string
1659
+
description: Can be used for filtering by the type of container in which the file is stored. Such as Site or OneDriveBusiness.
1644
1660
nullable: true
1645
1661
example:
1646
1662
title: string
@@ -1657,12 +1673,15 @@ components:
1657
1673
properties:
1658
1674
webUrl:
1659
1675
type: string
1676
+
description: A URL leading to the referenced item.
1660
1677
nullable: true
1661
1678
id:
1662
1679
type: string
1680
+
description: The item's unique identifier.
1663
1681
nullable: true
1664
1682
type:
1665
1683
type: string
1684
+
description: 'A string value that can be used to classify the item, such as ''microsoft.graph.driveItem'''
description: 'The date and time the resource was last accessed by the user. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: 2014-01-01T00:00:00Z. Read-only.'
description: 'The date and time the resource was last modified by the user. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: 2014-01-01T00:00:00Z. Read-only.'
1683
1704
format: date-time
1684
1705
nullable: true
1685
1706
example:
@@ -1698,12 +1719,15 @@ components:
1698
1719
properties:
1699
1720
displayName:
1700
1721
type: string
1722
+
description: The display name of the user who shared the item.
1701
1723
nullable: true
1702
1724
id:
1703
1725
type: string
1726
+
description: The id of the user who shared the item.
1704
1727
nullable: true
1705
1728
address:
1706
1729
type: string
1730
+
description: The email address of the user who shared the item.
0 commit comments