Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,28 @@
"password": {
"type": "string",
"description": "User Password. If no value is provided, a default password is generated."
},
"confirmation": {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is optional yes? So it doesn't introduce a breaking change.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, optional.

"type": "string",
"description": "Determines the type of confirmation e-mail that will be sent to the newly created user.",
"enum": [
"signup",
"invite"
],
"x-ms-enum": {
"name": "Confirmation",
"modelAsString": true,
"values": [
{
"value": "signup",
"description": "Send an e-mail to the user confirming they have successfully signed up."
},
{
"value": "invite",
"description": "Send an e-mail inviting the user to sign-up and complete registration."
}
]
}
}
},
"allOf": [
Expand All @@ -713,12 +735,32 @@
"description": "Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active.",
"enum": [
"active",
"blocked"
"blocked",
"pending",
"deleted"
],
"default": "active",
"x-ms-enum": {
"name": "UserState",
"modelAsString": true
"modelAsString": true,
"values": [
{
"value": "active",
"description": "User state is active."
},
{
"value": "blocked",
"description": "User is blocked. Blocked users cannot authenticate at developer portal or call API."
},
{
"value": "pending",
"description": "User account is pending. Requires identity confirmation before it can be made active."
},
{
"value": "deleted",
"description": "User account is closed. All identities and related entities are removed."
}
]
}
},
"note": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,23 @@
"properties": {
"firstName": "foo",
"lastName": "bar",
"email": "foobar@outlook.com"
"email": "foobar@outlook.com",
"confirmation": "signup"
}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/5931a75ae4bbd512288c680b",
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/5931a75ae4bbd512288c680b",
"type": "Microsoft.ApiManagement/service/users",
"name": "5931a75ae4bbd512288c680b",
"properties": {
"firstName": "foo",
"lastName": "bar",
"email": "foobar@outlook.com",
"state": "active",
"registrationDate": "2017-06-02T18:22:12.98Z",
"registrationDate": "2018-01-07T21:21:29.16Z",
"groups": [],
"identities": [
{
Expand All @@ -37,15 +38,15 @@
},
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/5931a75ae4bbd512288c680b",
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/5931a75ae4bbd512288c680b",
"type": "Microsoft.ApiManagement/service/users",
"name": "5931a75ae4bbd512288c680b",
"properties": {
"firstName": "foo",
"lastName": "bar",
"email": "foobar@outlook.com",
"state": "active",
"registrationDate": "2017-06-02T18:22:12.98Z",
"registrationDate": "2018-01-07T21:21:29.16Z",
"groups": [],
"identities": [
{
Expand Down