thousands-alarm-31103
06/12/2023, 7:35 PMbreezy-evening-56597
searchAll: (tenantIds?: string[], roles?: string[], limit?: number, page?: number, testUsersOnly?: boolean, withTestUser?: boolean, customAttributes?: Record<string, AttributesTypes>) => Promise<SdkResponse<_descope_core_js_sdk.UserResponse[]>>;
breezy-evening-56597
thousands-alarm-31103
06/12/2023, 7:47 PMthousands-alarm-31103
06/12/2023, 7:49 PMbreezy-evening-56597
salmon-night-88354
06/12/2023, 8:49 PMthousands-alarm-31103
06/12/2023, 8:49 PMthousands-alarm-31103
06/12/2023, 8:50 PMsalmon-night-88354
06/12/2023, 8:50 PMthousands-alarm-31103
06/12/2023, 8:50 PMthousands-alarm-31103
06/12/2023, 8:52 PMsalmon-night-88354
06/12/2023, 8:52 PMsalmon-night-88354
06/12/2023, 8:52 PMsalmon-night-88354
06/12/2023, 8:53 PMCould we also chose to use the stripe customer ID for the loginID and still have them OTP with the phone?
we're opening the FR for this, which would store stripe's user ID under the user's loginIDs, similar to how it's referenced in this article.
https://docs.descope.com/knowledgebase/descopeflows/multipleloginid/multipleloginid/thousands-alarm-31103
06/12/2023, 8:54 PMsalmon-night-88354
06/12/2023, 8:55 PMthousands-alarm-31103
06/12/2023, 9:09 PMsalmon-night-88354
06/12/2023, 9:35 PMcustomAttributes
to the payload and populate it with the custom attribute you are searching for as an object. I will get docs updated for this this week.
• http://localhost:3000/api/openapi/usermanagement/operation/SearchUsers/
Also, @dazzling-oyster-96577 may be able to help you set up connectors as well.thousands-alarm-31103
06/12/2023, 9:41 PMthousands-alarm-31103
06/12/2023, 9:41 PMthousands-alarm-31103
06/12/2023, 9:43 PMthousands-alarm-31103
06/12/2023, 9:44 PMsalmon-night-88354
06/12/2023, 9:46 PM<https://docs.descope.com/api/openapi/usermanagement/operation/CreateUser/>
You can update custom attributes:
<https://docs.descope.com/api/openapi/usermanagement/operation/UpdateUserCustomAttribute/>
Then you can search based on custom attributes
<https://docs.descope.com/api/openapi/usermanagement/operation/SearchUsers/>
Like:
curl -i -X POST \
<https://api.descope.com/v1/mgmt/user/search> \
-H 'Authorization: Bearer P2IBjb4s39ubA2tzOW75LfgbGRpR:<ManagementKey>' \
-H 'Content-Type: application/json' \
-d '{
"tenantIds": [
"string"
],
"roleNames": [
"string"
],
"limit": 0,
"text": "string",
"page": 0,
"loginId": "string",
"ssoOnly": false,
"customAttributes": {
"attributeKey": "string",
"attributeValue": "string"
},
}'