Skip to content

Commit

Permalink
Mark user properties userType and memberOf as read-only
Browse files Browse the repository at this point in the history
We don't want 'userType' to be set on POST/PATCH requests for now.
Currenly users with a type different from 'Member' are created
either via ocm or via graph invite requests.
See: owncloud/ocis#9858 for details

Also 'memberOf' is a read-only relation in MS Graph.
  • Loading branch information
rhafer committed Aug 20, 2024
1 parent 34a8187 commit 38ec328
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/Model/User.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Name | Type | Description | Notes
**drive** | [**\OpenAPI\Client\Model\Drive**](Drive.md) | | [optional]
**identities** | [**\OpenAPI\Client\Model\ObjectIdentity[]**](ObjectIdentity.md) | Identities associated with this account. | [optional]
**mail** | **string** | The SMTP address for the user, for example, '[email protected]'. Returned by default. | [optional]
**member_of** | [**\OpenAPI\Client\Model\Group[]**](Group.md) | Groups that this user is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand. | [optional]
**member_of** | [**\OpenAPI\Client\Model\Group[]**](Group.md) | Groups that this user is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand. | [optional] [readonly]
**on_premises_sam_account_name** | **string** | Contains the on-premises SAM account name synchronized from the on-premises directory. |
**password_profile** | [**\OpenAPI\Client\Model\PasswordProfile**](PasswordProfile.md) | | [optional]
**surname** | **string** | The user's surname (family name or last name). Returned by default. | [optional]
**given_name** | **string** | The user's givenName. Returned by default. | [optional]
**user_type** | **string** | The user`s type. This can be either \"Member\" for regular user, \"Guest\" for guest users or \"Federated\" for users imported from a federated instance. | [optional]
**user_type** | **string** | The user`s type. This can be either \"Member\" for regular user, \"Guest\" for guest users or \"Federated\" for users imported from a federated instance. | [optional] [readonly]
**preferred_language** | **string** | Represents the users language setting, ISO-639-1 Code | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
4 changes: 2 additions & 2 deletions docs/Model/UserUpdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Name | Type | Description | Notes
**drive** | [**\OpenAPI\Client\Model\Drive**](Drive.md) | | [optional]
**identities** | [**\OpenAPI\Client\Model\ObjectIdentity[]**](ObjectIdentity.md) | Identities associated with this account. | [optional]
**mail** | **string** | The SMTP address for the user, for example, '[email protected]'. Returned by default. | [optional]
**member_of** | [**\OpenAPI\Client\Model\Group[]**](Group.md) | Groups that this user is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand. | [optional]
**member_of** | [**\OpenAPI\Client\Model\Group[]**](Group.md) | Groups that this user is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand. | [optional] [readonly]
**on_premises_sam_account_name** | **string** | Contains the on-premises SAM account name synchronized from the on-premises directory. | [optional]
**password_profile** | [**\OpenAPI\Client\Model\PasswordProfile**](PasswordProfile.md) | | [optional]
**surname** | **string** | The user's surname (family name or last name). Returned by default. | [optional]
**given_name** | **string** | The user's givenName. Returned by default. | [optional]
**user_type** | **string** | The user`s type. This can be either \"Member\" for regular user, \"Guest\" for guest users or \"Federated\" for users imported from a federated instance. | [optional]
**user_type** | **string** | The user`s type. This can be either \"Member\" for regular user, \"Guest\" for guest users or \"Federated\" for users imported from a federated instance. | [optional] [readonly]
**preferred_language** | **string** | Represents the users language setting, ISO-639-1 Code | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

0 comments on commit 38ec328

Please sign in to comment.