Forum Discussion
Andreas Schlüter
Mar 29, 2019Brass Contributor
Graph API - validate mail nickname
Hey Folks, anybody who can me Point in the Right direction? I want to check a mail nickname for creating an Office 365 Group via Graph API before the Group will be created, so that the reques...
Andreas Schlüter
Mar 31, 2019Brass Contributor
thank you very much for your Input!
What User-ID do I have to take for "onBehalfofUser"?
And how do you check the mail nickname against the Directory? Maybe, the nickname is not in use for a Group but otherwise for a distributionlist or an alias of a user?
Thanks!
Kevin_Morgan
Apr 01, 2019Iron Contributor
User-ID : The UserID is Id of the user who is going to create group. Most probably, it should be the current user, so you can get it ("id" property) from "me" endpoint (https://graph.microsoft.com/v1.0/me).
mailNickName : The mailNickName is nothing but the mail alias for the new group that you are going to create (for ex: if you want your new group email address like "o365Group@contoso.com" - then here 'o365Group' is nickname).