Unable to Create User by using Microsoft Graph Explorer

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

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": "beta1@yopmail.com",
            "SignInType": "emailAddress"
        },
        {
            "AdditionalData": {},
            "BackingStore": {
                "ReturnOnlyChangedValues": false,
                "InitializationCompleted": true
            },
            "Issuer": "<my b2c tenantId>",
            "IssuerAssignedId": "beta1",
            "SignInType": "userName"
        }
    ]
}
Microsoft Graph Users API
Microsoft Graph Users API
A Microsoft API that allows you to build compelling app experiences based on users, their relationships with other users and groups, and the resources they access for example their mails, calendars, files, administrative roles, group memberships.
546 questions
Microsoft Graph Azure AD API
Microsoft Graph Azure AD API
A Microsoft API that queries the user's profile, finds other users, manages organizational relationships, tracks assignments, or creates original solutions that incorporate existing organizational data.
185 questions
No comments
{count} votes

Accepted answer
  1. answered 2022-06-03T08:11:08.87+00:00
    Sheena-MSFT 1,706 Reputation points

    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.
    No comments

0 additional answers

Sort by: Most helpful