none
Bulk upload users from local db (JSON format) to Azure B2C Active Directory using Microsoft Graph API IN JAVA RRS feed

  • Question

  • Hello, I am new to Azure and Graphs, I need a help, been looking everywhere from past 3 days, finally coming here with hope. IN JAVA.

    So I have some users, which I converted to JSON from local DB, looks like this : 

    { "users": [ { "displayName": "Amanda Polly", "givenName": "Amanda", "surname": "Polly", "extension_user_type": "user", "identities": [ { "signInType": "emailAddress", "issuerAssignedId": "amandapolly@gmail.com" } ], "extension_timezone": "PST", "extension_locale": "en-US", "extension_tenant": "EG1234" }, { "displayName": "Lowa Doe", "givenName": "Lowa", "surname": "Doe", "extension_user_type": "user", "identities": [ { "signInType": "userName", "issuerAssignedId": "lowadow123" } ], "extension_timezone": "PST", "extension_locale": "en-US", "extension_tenant": "EG1234" } ] }

    So, now that I have this JSON file (with user information and some new fields like extension_fieldName)

    I have to create these user in Azure B2C Active Directory, for which I have to use Microsoft graph API,

    I am very new to this, can someone please help me here, really feeling stuck, I do not want to give up.

    Please someone guide me through or just tell me how to start (I read tons of documents from microsoft) please help.

    I have client_ID and client_Secret and b2c tenant, not sure how am I going to use it.

    • Edited by Sharad Dutta Friday, August 21, 2020 2:09 PM adding info
    Friday, August 21, 2020 2:07 PM

All replies

  • "identities": [
        {
          "signInType": "userName",
          "issuer": "contoso.onmicrosoft.com",
          "issuerAssignedId": "johnsmith"
        },
        {
          "signInType": "emailAddress",
          "issuer": "contoso.onmicrosoft.com",
          "issuerAssignedId": "jsmith@yahoo.com"
        },
        {
          "signInType": "federated",
          "issuer": "facebook.com",
          "issuerAssignedId": "5eecb0cd"
        }
      ]

    I hope this code helps!

    Friday, August 21, 2020 2:21 PM
  • Hello Max, 

    Can you help me with the start, I am really confused, I have provided what my JSON looks like and it has IDENTITIES, I need your help in understanding how to connect Azure B2C Active Directory to Java code, and how and where to use Microsoft graph API

    Friday, August 21, 2020 2:40 PM