API support for SafeLinksPolicy

Subhajit 11 Reputation points
2022-09-06T13:33:53.087+00:00

We are trying to verify whether the Safe Links policy is enabled, or not.

We have the following Powershell command to check:

Get-SafeLinksPolicy -Identity "Policy Name"

Is there any equivalent API available in MSGraph Go SDK?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,272 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Vicky Kumar (Mindtree Consulting PVT LTD) 1,171 Reputation points Microsoft Employee
    2022-09-08T10:10:21.257+00:00

    AFAIK, there are only couple of policy API are available as shown in below screenshot , please check the doc for available SDK for those policy are in the GIT - https://github.com/microsoftgraph/msgraph-sdk-go/tree/main/policies ,

    For SafeLinksPolicy , you have to check through PowerShell - https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/set-up-safe-links-policies?view=o365-worldwide .

    238920-image.png

    Hope this helps

    ----------

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment", thanks

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.