Skip to content

Commit cbc99ae

Browse files
Merge pull request #5736 from wso2/fixing-product-is-issue-26255-1764135176
Fix: Document askPassword parameter for inviting users to set password for all affected versions (Product IS issue #26255)
2 parents e73ba90 + 992f79a commit cbc99ae

File tree

10 files changed

+146
-12
lines changed

10 files changed

+146
-12
lines changed

en/identity-server/6.0.0/docs/apis/restapis/scim2.yaml

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,11 @@ paths:
623623
- Users Endpoint
624624
summary: Create User
625625
description: "This API creates a user and returns the user details along with\
626-
\ the user's unique ID.\n\n<b>Permission required:</b>\n* /permission/admin/manage/identity/usermgt/create\n\
626+
\ the user's unique ID.\n\n\
627+
You can create a user in two ways:\n\
628+
1. **Set a password for the user**: Include the `password` parameter in the request body to set an initial password for the user.\n\
629+
2. **Invite the user to set their own password**: Set the `askPassword` parameter to `true` in the `urn:scim:wso2:schema` extension. An email will be sent to the user with instructions to set their password and confirm their account.\n\n\
630+
<b>Permission required:</b>\n* /permission/admin/manage/identity/usermgt/create\n\
627631
\n<b>Scope required:</b>\n * internal_user_mgt_create\n \n"
628632
operationId: createUser
629633
parameters:
@@ -641,7 +645,9 @@ paths:
641645
content:
642646
application/scim+json:
643647
schema:
644-
$ref: '#/components/schemas/UserObject'
648+
oneOf:
649+
- $ref: '#/components/schemas/UserObject'
650+
- $ref: '#/components/schemas/UserObjectPassInvite'
645651
required: false
646652
responses:
647653
201:
@@ -1282,6 +1288,7 @@ paths:
12821288
components:
12831289
schemas:
12841290
UserObject:
1291+
title: Set a password for the user
12851292
required:
12861293
- password
12871294
type: object
@@ -1326,6 +1333,54 @@ components:
13261333
value:
13271334
type: string
13281335
example: Taylor
1336+
UserObjectPassInvite:
1337+
title: Invite the user to set their own password
1338+
type: object
1339+
properties:
1340+
schemas:
1341+
type: object
1342+
properties: {}
1343+
example: []
1344+
name:
1345+
type: object
1346+
properties:
1347+
givenName:
1348+
type: string
1349+
description: The `givenName` you specify will be entered for the First Name attribute in the user's profile.
1350+
example: Kim
1351+
familyName:
1352+
type: string
1353+
description: The `familyName` you specify will be entered for the Last Name attribute in the user's profile.
1354+
example: Berry
1355+
userName:
1356+
type: string
1357+
description: The `username` you specify will be used by the user for log in.
1358+
example: kim
1359+
emails:
1360+
type: array
1361+
description: Currently, the first email (without a specified type) is treated as the primary email and assigning a type to this email is not supported.
1362+
example:
1363+
- value: kim@gmail.com
1364+
primary: true
1365+
items:
1366+
type: object
1367+
properties: {}
1368+
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:
1369+
type: object
1370+
properties:
1371+
manager:
1372+
type: object
1373+
properties:
1374+
value:
1375+
type: string
1376+
example: Taylor
1377+
urn:scim:wso2:schema:
1378+
type: object
1379+
properties:
1380+
askPassword:
1381+
type: boolean
1382+
description: If this parameter is set to `true`, users will be allowed configure their own password. An email is sent to the specified email address, which will have instructions for the user to set the password and confirm the new user account.
1383+
example: true
13291384
UserResponseObject:
13301385
required:
13311386
- meta

en/identity-server/6.1.0/docs/apis/restapis/scim2.yaml

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,11 @@ paths:
623623
- Users Endpoint
624624
summary: Create User
625625
description: "This API creates a user and returns the user details along with\
626-
\ the user's unique ID.\n\n<b>Permission required:</b>\n* /permission/admin/manage/identity/usermgt/create\n\
626+
\ the user's unique ID.\n\n\
627+
You can create a user in two ways:\n\
628+
1. **Set a password for the user**: Include the `password` parameter in the request body to set an initial password for the user.\n\
629+
2. **Invite the user to set their own password**: Set the `askPassword` parameter to `true` in the `urn:scim:wso2:schema` extension. An email will be sent to the user with instructions to set their password and confirm their account.\n\n\
630+
<b>Permission required:</b>\n* /permission/admin/manage/identity/usermgt/create\n\
627631
\n<b>Scope required:</b>\n * internal_user_mgt_create\n \n"
628632
operationId: createUser
629633
parameters:
@@ -641,7 +645,9 @@ paths:
641645
content:
642646
application/scim+json:
643647
schema:
644-
$ref: '#/components/schemas/UserObject'
648+
oneOf:
649+
- $ref: '#/components/schemas/UserObject'
650+
- $ref: '#/components/schemas/UserObjectPassInvite'
645651
required: false
646652
responses:
647653
201:
@@ -1282,6 +1288,7 @@ paths:
12821288
components:
12831289
schemas:
12841290
UserObject:
1291+
title: Set a password for the user
12851292
required:
12861293
- password
12871294
type: object
@@ -1326,6 +1333,54 @@ components:
13261333
value:
13271334
type: string
13281335
example: Taylor
1336+
UserObjectPassInvite:
1337+
title: Invite the user to set their own password
1338+
type: object
1339+
properties:
1340+
schemas:
1341+
type: object
1342+
properties: {}
1343+
example: []
1344+
name:
1345+
type: object
1346+
properties:
1347+
givenName:
1348+
type: string
1349+
description: The `givenName` you specify will be entered for the First Name attribute in the user's profile.
1350+
example: Kim
1351+
familyName:
1352+
type: string
1353+
description: The `familyName` you specify will be entered for the Last Name attribute in the user's profile.
1354+
example: Berry
1355+
userName:
1356+
type: string
1357+
description: The `username` you specify will be used by the user for log in.
1358+
example: kim
1359+
emails:
1360+
type: array
1361+
description: Currently, the first email (without a specified type) is treated as the primary email and assigning a type to this email is not supported.
1362+
example:
1363+
- value: kim@gmail.com
1364+
primary: true
1365+
items:
1366+
type: object
1367+
properties: {}
1368+
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:
1369+
type: object
1370+
properties:
1371+
manager:
1372+
type: object
1373+
properties:
1374+
value:
1375+
type: string
1376+
example: Taylor
1377+
urn:scim:wso2:schema:
1378+
type: object
1379+
properties:
1380+
askPassword:
1381+
type: boolean
1382+
description: If this parameter is set to `true`, users will be allowed configure their own password. An email is sent to the specified email address, which will have instructions for the user to set the password and confirm the new user account.
1383+
example: true
13291384
UserResponseObject:
13301385
required:
13311386
- meta

en/identity-server/7.0.0/docs/apis/organization-apis/restapis/user-management.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ paths:
9999
- Users Endpoint
100100
summary: Create user
101101
description: "This API creates a user and returns the user details along with\
102-
\ the user's unique ID.\n
102+
\ the user's unique ID.\n\n\
103+
You can create a user in two ways:\n\
104+
1. **Set a password for the user**: Include the `password` parameter in the request body to set an initial password for the user.\n\
105+
2. **Invite the user to set their own password**: Set the `askPassword` parameter to `true` in the `urn:scim:wso2:schema` extension. An email will be sent to the user with instructions to set their password and confirm their account.\n
103106
\n<b>Scope(Permission) required:</b>`internal_org_user_mgt_create`\n \n"
104107
operationId: createUser
105108
parameters:

en/identity-server/7.0.0/docs/apis/restapis/scim2-users.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ paths:
9999
- Users Endpoint
100100
summary: Create user
101101
description: "This API creates a user and returns the user details along with\
102-
\ the user's unique ID.\n\n
102+
\ the user's unique ID.\n\n\
103+
You can create a user in two ways:\n\
104+
1. **Set a password for the user**: Include the `password` parameter in the request body to set an initial password for the user.\n\
105+
2. **Invite the user to set their own password**: Set the `askPassword` parameter to `true` in the `urn:scim:wso2:schema` extension. An email will be sent to the user with instructions to set their password and confirm their account.\n\n
103106
\n<b>Scope(Permission) required:</b>`internal_user_mgt_create`\n \n"
104107
operationId: createUser
105108
parameters:

en/identity-server/7.1.0/docs/apis/organization-apis/restapis/user-management.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ paths:
9999
- Users Endpoint
100100
summary: Create user
101101
description: "This API creates a user and returns the user details along with\
102-
\ the user's unique ID.\n
102+
\ the user's unique ID.\n\n\
103+
You can create a user in two ways:\n\
104+
1. **Set a password for the user**: Include the `password` parameter in the request body to set an initial password for the user.\n\
105+
2. **Invite the user to set their own password**: Set the `askPassword` parameter to `true` in the `urn:scim:wso2:schema` extension. An email will be sent to the user with instructions to set their password and confirm their account.\n
103106
\n<b>Scope(Permission) required:</b>`internal_org_user_mgt_create`\n \n"
104107
operationId: createUser
105108
parameters:

en/identity-server/7.1.0/docs/apis/restapis/scim2-users.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ paths:
9999
- Users Endpoint
100100
summary: Create user
101101
description: "This API creates a user and returns the user details along with\
102-
\ the user's unique ID.\n\n
102+
\ the user's unique ID.\n\n\
103+
You can create a user in two ways:\n\
104+
1. **Set a password for the user**: Include the `password` parameter in the request body to set an initial password for the user.\n\
105+
2. **Invite the user to set their own password**: Set the `askPassword` parameter to `true` in the `urn:scim:wso2:schema` extension. An email will be sent to the user with instructions to set their password and confirm their account.\n\n
103106
\n<b>Scope(Permission) required:</b>`internal_user_mgt_create`\n \n"
104107
operationId: createUser
105108
parameters:

en/identity-server/7.2.0/docs/apis/organization-apis/restapis/user-management.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ paths:
9999
- Users Endpoint
100100
summary: Create user
101101
description: "This API creates a user and returns the user details along with\
102-
\ the user's unique ID.\n
102+
\ the user's unique ID.\n\n\
103+
You can create a user in two ways:\n\
104+
1. **Set a password for the user**: Include the `password` parameter in the request body to set an initial password for the user.\n\
105+
2. **Invite the user to set their own password**: Set the `askPassword` parameter to `true` in the `urn:scim:wso2:schema` extension. An email will be sent to the user with instructions to set their password and confirm their account.\n
103106
\n<b>Scope(Permission) required:</b>`internal_org_user_mgt_create`\n \n"
104107
operationId: createUser
105108
parameters:

en/identity-server/7.2.0/docs/apis/restapis/scim2-users.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ paths:
9999
- Users Endpoint
100100
summary: Create user
101101
description: "This API creates a user and returns the user details along with\
102-
\ the user's unique ID.\n\n
102+
\ the user's unique ID.\n\n\
103+
You can create a user in two ways:\n\
104+
1. **Set a password for the user**: Include the `password` parameter in the request body to set an initial password for the user.\n\
105+
2. **Invite the user to set their own password**: Set the `askPassword` parameter to `true` in the `urn:scim:wso2:schema` extension. An email will be sent to the user with instructions to set their password and confirm their account.\n\n
103106
\n<b>Scope(Permission) required:</b>`internal_user_mgt_create`\n \n"
104107
operationId: createUser
105108
parameters:

en/identity-server/next/docs/apis/organization-apis/restapis/user-management.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ paths:
9999
- Users Endpoint
100100
summary: Create user
101101
description: "This API creates a user and returns the user details along with\
102-
\ the user's unique ID.\n
102+
\ the user's unique ID.\n\n\
103+
You can create a user in two ways:\n\
104+
1. **Set a password for the user**: Include the `password` parameter in the request body to set an initial password for the user.\n\
105+
2. **Invite the user to set their own password**: Set the `askPassword` parameter to `true` in the `urn:scim:wso2:schema` extension. An email will be sent to the user with instructions to set their password and confirm their account.\n
103106
\n<b>Scope(Permission) required:</b>`internal_org_user_mgt_create`\n \n"
104107
operationId: createUser
105108
parameters:

en/identity-server/next/docs/apis/restapis/scim2-users.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ paths:
9999
- Users Endpoint
100100
summary: Create user
101101
description: "This API creates a user and returns the user details along with\
102-
\ the user's unique ID.\n\n
102+
\ the user's unique ID.\n\n\
103+
You can create a user in two ways:\n\
104+
1. **Set a password for the user**: Include the `password` parameter in the request body to set an initial password for the user.\n\
105+
2. **Invite the user to set their own password**: Set the `askPassword` parameter to `true` in the `urn:scim:wso2:schema` extension. An email will be sent to the user with instructions to set their password and confirm their account.\n\n
103106
\n<b>Scope(Permission) required:</b>`internal_user_mgt_create`\n \n"
104107
operationId: createUser
105108
parameters:

0 commit comments

Comments
 (0)