列出 b2cUserFlowsList b2cUserFlows

命名空间:microsoft.graphNamespace: microsoft.graph

重要

/betaMicrosoft Graph 中的版本下的 api 可能会发生更改。APIs under the /beta version in Microsoft Graph are subject to change. 不支持在生产应用程序中使用这些 API。Use of these APIs in production applications is not supported. 若要确定 API 在 v1.0 中是否可用,请使用 版本 选择器。To determine whether an API is available in v1.0, use the Version selector.

检索 b2cUserFlow 对象的列表。Retrieve a list of b2cUserFlow objects.

权限Permissions

要调用此 API,需要以下权限之一。要了解详细信息,包括如何选择权限的信息,请参阅权限One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

权限类型Permission type 权限(从最低特权到最高特权)Permissions (from least to most privileged)
委派(工作或学校帐户)Delegated (work or school account) IdentityUserFlow、IdentityUserFlow 和所有IdentityUserFlow.Read.All, IdentityUserFlow.ReadWrite.All
委派(个人 Microsoft 帐户)Delegated (personal Microsoft account) 不支持。Not supported.
应用程序Application IdentityUserFlow、IdentityUserFlow 和所有IdentityUserFlow.Read.All, IdentityUserFlow.ReadWrite.All

工作或学校帐户需要属于下列角色之一:The work or school account needs to belong to one of the following roles:

  • 全局管理员Global administrator
  • 外部标识用户流管理员External Identity User Flow administrator

HTTP 请求HTTP request

GET /identity/b2cUserFlows

可选的查询参数Optional query parameters

您可以使用 $expand 展开默认情况下不展开的特定用户流属性。You can use $expand to expand specific user flow properties that are not expanded by default.

有关详细信息,请参阅 OData 查询参数For more information, see OData query parameters.

请求标头Request headers

名称Name 说明Description
AuthorizationAuthorization Bearer {token}。必需。Bearer {token}. Required.

请求正文Request body

请勿提供此方法的请求正文。Do not supply a request body for this method.

响应Response

如果成功,此方法 200 OK 在响应正文中返回响应代码和 b2cUserFlow 对象集合。If successful, this method returns a 200 OK response code and a collection of b2cUserFlow objects in the response body.

示例Examples

示例1:列出所有 b2cUserFlowsExample 1: List all b2cUserFlows

请求Request

下面展示了示例请求。The following is an example of the request.

GET https://graph.microsoft.com/beta/identity/b2cUserFlows

响应Response

下面介绍响应示例。The following is an example of the response.

注意: 为了提高可读性,可能缩短了此处显示的响应对象。Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-type: application/json

{
    "@odata.context": "https://graph.microsoft.com/beta/$metadata#identity/b2cUserFlows",
    "value": [
      {
          "id": "B2C_1_CustomerSignUp",
          "userFlowType": "signUp",
          "userFlowTypeVersion": 1
      },
      {
          "id": "B2C_1_CustomerSignIn",
          "userFlowType": "signIn",
          "userFlowTypeVersion": 1
      },
    ]
}

示例2:列出所有 b2cUserFlows 并展开 identityProvidersExample 2: List all b2cUserFlows and expand identityProviders

请求Request

下面展示了示例请求。The following is an example of the request.

GET https://graph.microsoft.com/beta/identity/b2cUserFlows?$expand=identityProviders

响应Response

下面介绍响应示例。The following is an example of the response.

注意: 为了提高可读性,可能缩短了此处显示的响应对象。Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-type: application/json

{
    "@odata.context": "https://graph.microsoft.com/beta/$metadata#identity/b2cUserFlows",
    "value": [
      {
          "id": "B2C_1_CustomerSignUp",
          "userFlowType": "signUp",
          "userFlowTypeVersion": 1,
          "identityProviders": [
              {
                "id": "Facebook-OAuth",
                "type": "Facebook",
                "name": "Facebook",
                "clientId": "clientIdFromFacebook",
                "clientSecret": "*******"
              }  
          ]
      },
      {
          "id": "B2C_1_CustomerSignIn",
          "userFlowType": "signIn",
          "userFlowTypeVersion": 1,
          "identityProviders": [
              {
                "id": "Facebook-OAuth",
                "type": "Facebook",
                "name": "Facebook",
                "clientId": "clientIdFromFacebook",
                "clientSecret": "*******"
              }  
          ]
      }
   ]
}