Share via

Unable to Create User by using Microsoft Graph Explorer

JS Arya 46 Reputation points
2022-06-03T06:27:52.457+00:00

I am trying to create a user in Graph Explorer. But I am getting A resource without a type name was found, but no expected type was specified. To allow entries without type information, the expected type must also be specified when the model is specified.

{
    "accountEnabled": true,
    "city": "Seattle",
    "country": "United States",
    "department": "Sales & Marketing",
    "displayName": "AAA AAA",
    "givenName": "AAA",
    "jobTitle": "Marketing Director",
    "mailNickname": "MelissaD",
    "passwordPolicies": "DisablePasswordExpiration",
    "passwordProfile": {
        "password": "Password1",
        "forceChangePasswordNextSignIn": false
    },
    "officeLocation": "131/1105",
    "postalCode": "98052",
    "preferredLanguage": "en-US",
    "state": "WA",
    "streetAddress": "9256 Towne Center Dr., Suite 400",
    "surname": "Darrow",
    "mobilePhone": "+1 000 000 0110",
    "usageLocation": "",
    "userType": "member",
    "identities": [
        {
            "AdditionalData": {},
            "BackingStore": {
                "ReturnOnlyChangedValues": false,
                "InitializationCompleted": true
            },
            "Issuer": "<my b2c tenantId>",
            "IssuerAssignedId": "******@yopmail.com",
            "SignInType": "emailAddress"
        },
        {
            "AdditionalData": {},
            "BackingStore": {
                "ReturnOnlyChangedValues": false,
                "InitializationCompleted": true
            },
            "Issuer": "<my b2c tenantId>",
            "IssuerAssignedId": "beta1",
            "SignInType": "userName"
        }
    ]
}
Microsoft Security | Microsoft Graph
0 comments No comments

Answer accepted by question author

Sheena-MSFT 1,736 Reputation points
2022-06-03T08:11:08.87+00:00

Hi @JS Arya ,

Please check the following

  • The user principal name (UPN) of the user. This property is required when a user is created.
  • UsageLocation-A two letter country code (ISO standard 3166). Not nullable.
  • Properties supported by identities objectidentity
    Reference: user
    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.