Catalog item to manage O365 distribution list

Joe Weisiger
Giga Expert

Hello, 

Has anyone created a catalog item request to add/remove users from an O365 distribution list?  If so, what is involved? 

Thank you, Joe

1 ACCEPTED SOLUTION

Narsing1
Mega Sage

Hi,

You need to call the API's to do this.  Here are some steps

  • Get all the related Api end points
  • Get Auth details
  • Configure using Rest message and perform a sample test
  • Use this Rest in your catalog item
  • Onsubmit / once the ritm created, write a BR to fulfill the request
  • in BR call the REST and close the request

Thanks,

Narsing

 

View solution in original post

4 REPLIES 4

Narsing1
Mega Sage

Hi,

You need to call the API's to do this.  Here are some steps

  • Get all the related Api end points
  • Get Auth details
  • Configure using Rest message and perform a sample test
  • Use this Rest in your catalog item
  • Onsubmit / once the ritm created, write a BR to fulfill the request
  • in BR call the REST and close the request

Thanks,

Narsing

 

we have a requirement to get the distribution list of logged in user where  he is in owner and populate the distribution list in select box on form loads, i am not able to figure it out how and where to start ? can any one help me on this?

shashanktonpeka
ServiceNow Employee
ServiceNow Employee

You can certainly look at Microsoft document to see if technically this is possible via API calls. If you are talking about distribution list then accordingly to me this is technically not possible via automation.

In Microsoft 365 you can only add users to security and Microsoft 365 groups and distribution groups are separate type of group. You may have to move your existing distribution group to a Microsoft 365 group and then can call the Microsoft Graph APIs to add/ remove members from the group.

From automation side, I would recommend you use Flow Designer/ Integration Hub to create a flow and associate the flow with your catalog item. 

Hope this helps 

karrierr
Tera Contributor

Hi Joe, did you succeed in implementing this? Thanks.