Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phillipharding/7eaff75039db5b29e11e7eeb0f5c8595 to your computer and use it in GitHub Desktop.
Save phillipharding/7eaff75039db5b29e11e7eeb0f5c8595 to your computer and use it in GitHub Desktop.
Returns the Office 365 Compliance Tags which have been published to a site collection
POST https://tenant.sharepoint.com/sites/siteurl/_vti_bin/client.svc/ProcessQuery HTTP/1.1
X-RequestDigest: {digest}
Content-Type: text/xml
<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName=".NET Library" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009">
<Actions>
<StaticMethod TypeId="{9efa17eb-0d34-4f69-a085-5cc3f802439e}" Name="GetAvailableTagsForSite" Id="22">
<Parameters>
<Parameter Type="String">https://tenant.sharepoint.com/sites/siteurl</Parameter>
</Parameters>
</StaticMethod>
</Actions>
<ObjectPaths />
</Request>
RESPONSE
[
{
"SchemaVersion": "15.0.0.0",
"LibraryVersion": "16.0.9103.1219",
"ErrorInfo": null,
"TraceCorrelationId": "fc14f19e-70fd-9000-393c-5e81881bf60a"
},
22,
[
{
"_ObjectType_": "SP.CompliancePolicy.ComplianceTag",
"AcceptMessagesOnlyFromSendersOrMembers": false,
"AccessType": null,
"AllowAccessFromUnmanagedDevice": null,
"AutoDelete": true,
"BlockDelete": true,
"BlockEdit": false,
"ContainsSiteLabel": false,
"DisplayName": "",
"EncryptionRMSTemplateId": null,
"HasRetentionAction": true,
"IsEventTag": true,
"Notes": null,
"RequireSenderAuthenticationEnabled": false,
"ReviewerEmail": null,
"SharingCapabilities": null,
"SuperLock": false,
"TagDuration": 1,
"TagId": "/Guid(019a5d69-2f1d-4bd9-92e5-5b919d69c50f)/",
"TagName": "Content Closure",
"TagRetentionBasedOn": "EventAgeInDays"
},
{
"_ObjectType_": "SP.CompliancePolicy.ComplianceTag",
"AcceptMessagesOnlyFromSendersOrMembers": false,
"AccessType": null,
"AllowAccessFromUnmanagedDevice": null,
"AutoDelete": true,
"BlockDelete": true,
"BlockEdit": false,
"ContainsSiteLabel": false,
"DisplayName": "",
"EncryptionRMSTemplateId": null,
"HasRetentionAction": true,
"IsEventTag": false,
"Notes": "User description of EDMS 1 Year (delete)",
"RequireSenderAuthenticationEnabled": false,
"ReviewerEmail": "phil.harding@PlatinumdogsConsulting.onmicrosoft.com",
"SharingCapabilities": null,
"SuperLock": false,
"TagDuration": 365,
"TagId": "/Guid(ac5d1b6c-d70b-428d-a551-f04f91dff846)/",
"TagName": "EDMS 1 Year (delete)",
"TagRetentionBasedOn": "ModificationAgeInDays"
}
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment