Skip to content

This is a library containing numerous functions which can be directly implemented as Functions in Azure.

Notifications You must be signed in to change notification settings

Hexatown/office365-functions

Repository files navigation

Office365 Functions

This is a library containing numerous functions (sub resource) which can be directly implemented as Functions in Azure.

Out of Office

Resource name: auto-reply
Path: ps/auto-reply
Actions: enable / disable

Payload:

{
	"email": "[email protected]",
	"message": "Out of Office message",
	"action": "enable"
}

Response:

{
	"email": "[email protected]",
	"message": "Out of Office message",
	"detail": "Auto reply enabled.",
	"status": 1
}

Status codes

Code Description
1 Enabled
2 Disabled

Shared Mailbox

Resource name: mailbox
Path: ps/mailbox

Payload:

{
	"email": "[email protected]",
	"name": "Name of your mailbox",
	"owner": "[email protected]"
}

Response:

{
	"email": "[email protected]",
	"status": 1,
	"detail": "Mailbox created.",
	"name": "Name of your mailbox",
	"owner": "[email protected]"
}

Status codes

Code Description
1 Mailbox created
2 Mailbox exits
3 ACL group exists

Distribution List

Resource name: dl
Path: ps/dl

Payload:

{
	"email": "[email protected]",
	"name": "Name of your distribution list",
	"owner": "[email protected]"
}

Response:

{
	"email": "[email protected]",
	"status": 1,
	"detail": "DL created.",
	"name": "Name of your distribution list",
	"owner": "[email protected]"
}

Status codes

Code Description
1 DL created
2 DL exits

Multi Factor Authentication (MFA) reset

Resource name: mfa
Path: ps/mfa
Actions: enable / disable / reset

Payload:

{
	"email": "[email protected]",
	"action": "reset"
}

Response:

{
	"email": "[email protected]",
	"detail": "MFA Reset completed.",
	"status": 3
}

Status codes

Code Description
1 Enabled
2 Disabled
3 Reset
4 Others (Check description)

About

This is a library containing numerous functions which can be directly implemented as Functions in Azure.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •