问题
According to this article: Add custom data to groups using schema extensions (preview)
If I want to create a custom schema extension, I must have a verify domain name like domain.com. Must ends with '.com'? How about test.domain.com? how about domain.net? How about without custom domain, just with default onmicrosoft domain?
I got this error when I try to create a schema extension:
{
"error": {
"code": "BadRequest",
"message": "Your organization must own the namespace gaoulm021 as a part of one of the verified domains.",
"innerError": {
"request-id": "c443d4be-6258-4648-a36b-985662cfe433",
"date": "2017-03-09T07:07:39"
}
}
}
Any helpe?
Thanks!
回答1:
Currently you must have a verified domain name like "domain.com", and yes it must end with .com. We will be relaxing this in the future.
We don't support using the initial domain (like contoso.onmicrosoft.com) for extension definition naming. We're unlikely to support this.
We are working on another mechanism that will allow you to create an extension definition without needing a verified domain, but the name will look uglier - something like ext_{generated_random_string}_{your_schema_name}. This will make it easier to get started if you don't have a vanity domain. We hope to make this update very soon.
UPDATE 3/22/2017: We've now introduced a new mechanism that means you can register schema extension definitions without having a verified .com domain. In this case you would set the id to simply the name of your schema (which cannot include an underscore character). On creation, id will be set to ext{8-char-random-alphanumeric}_{your-supplied-name}. Please let us know if this is working for you. Also docs are updated with this info: https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/schemaextension_post_schemaextensions
UPDATE 6/16/2017: We now additionally support creating schema extension ids namespaced based on verified domains that have a TLD root of .net,.gov, .edu and .org. We've not updated the docs to reflect this, but will do soon.
Hope this helps,
来源:https://stackoverflow.com/questions/42686025/how-to-create-schema-extension-without-custom-verified-domain