Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First, your request URI is incorrect. For creating a group using version 0.8 of the Graph API, it should be in this format:</p> <p><a href="https://graph.windows.net/yourtenantdomainname.com/Group" rel="nofollow">https://graph.windows.net/yourtenantdomainname.com/Group</a></p> <p>Your tenant might also be an *.onmicrosoft.com address. A couple other things: the service currently doesn't support setting the DirSyncEnabled or Mail properties. They are both read-only. And currently you need to have MailEnabled set to false and SecurityEnabled set to true. </p> <p>To create a group using 0.8 version, this is what your request will look like:</p> <pre><code>POST https://graph.windows.net/yourtenantname.com/Groups HTTP/1.1 Authorization: Bearer eyJ0eXAiOiJK...vYiFqfkg Host: graph.windows.net Content-Type: application/atom+xml x-ms-dirapi-data-contract-version: 0.8 Content-Length: 725 &lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt; &lt;entry xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"&gt; &lt;content type="application/xml"&gt; &lt;m:properties&gt; &lt;d:DisplayName&gt;testingGroup&lt;/d:DisplayName&gt; &lt;d:Description&gt;Test group&lt;/d:Description&gt; &lt;d:MailEnabled&gt;false&lt;/d:MailEnabled&gt; &lt;d:ObjectType&gt;Group&lt;/d:ObjectType&gt; &lt;d:SecurityEnabled&gt;true&lt;/d:SecurityEnabled&gt; &lt;d:MailNickname&gt;firstGroup&lt;/d:MailNickname&gt; &lt;/m:properties&gt; &lt;/content&gt; &lt;/entry&gt; </code></pre> <p>Note that 0.9 of the Graph API was released recently: <a href="http://blogs.msdn.com/b/aadgraphteam/archive/2013/03/03/0-9-version-of-azure-active-directory-graph-now-available.aspx" rel="nofollow">http://blogs.msdn.com/b/aadgraphteam/archive/2013/03/03/0-9-version-of-azure-active-directory-graph-now-available.aspx</a></p> <p>If you want to create a group using the latest version of the API, this is how your request would look using XML as the payload (note the camelCase properties and "group" in the URI):</p> <pre><code>POST https://graph.windows.net/yourtenantname.com/groups?api-version=0.9 HTTP/1.1 Authorization: Bearer eyJ0eXAi...YiFqfkg Host: graph.windows.net Content-Type: application/atom+xml Content-Length: 627 &lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt; &lt;entry xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"&gt; &lt;content type="application/xml"&gt; &lt;m:properties&gt; &lt;d:displayName&gt;testingGroup&lt;/d:displayName&gt; &lt;d:description&gt;Test group&lt;/d:description&gt; &lt;d:mailEnabled&gt;false&lt;/d:mailEnabled&gt; &lt;d:objectType&gt;Group&lt;/d:objectType&gt; &lt;d:securityEnabled&gt;true&lt;/d:securityEnabled&gt; &lt;d:mailNickname&gt;firstGroup&lt;/d:mailNickname&gt; &lt;/m:properties&gt; &lt;/content&gt; &lt;/entry&gt; </code></pre> <p>And finally just for fun, if you want to use the new supported minimal JSON the payload would look like this:</p> <pre><code>{ "displayName": "testingGroup", "description": "Test group", "mailNickname": "firstGroup", "mailEnabled": false, "securityEnabled": true } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload