Azure AD B2C 获取具有自定义属性的用户

Azure AD B2C get users with custom attributes

我在使用 Azure AD B2C 时遇到问题,同时我想让用户在创建过程中设置自定义属性。一切都在使用 Graph API (string url = "https://graph.microsoft.com/" + "v1.0" + apiFunction;) 完成。我使用 API 和自定义属性 "extension_08eedadaf5f*********53e8389608e_arvatoId": "1001" 注册了用户,但是当我调用 /users 时,我没有得到这个自定义属性。我只有: { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users/$entity", "id": "40861b91-*********-b25889b0e685", "businessPhones": [], "displayName": "Nowe Testowe", "givenName": null, "jobTitle": null, "mail": null, "mobilePhone": null, "officeLocation": null, "preferredLanguage": null, "surname": null, "userPrincipalName": "NoweTestowe@*********.onmicrosoft.com" }

我应该如何调用 /users API 来获取用户自定义属性值?

是的,beta端点returns默认用户的所有属性,v1.0端点默认隐藏不常用的用户属性。