Skip to content

Commit

Permalink
add graph user capabilities
Browse files Browse the repository at this point in the history
Signed-off-by: jkoberg <[email protected]>
  • Loading branch information
kobergj committed May 17, 2023
1 parent de5cc4a commit 5675fe8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/graph-user-capabilities.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Enhancement: Add Graph User capabilities

Add capabilities to show if user can be created or deleted and if they can change their password on self service

https://github.com/cs3org/reva/pull/3898
12 changes: 10 additions & 2 deletions internal/http/services/owncloud/ocs/data/capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,16 @@ type CapabilitiesCore struct {

// CapabilitiesGraph holds the graph capabilities
type CapabilitiesGraph struct {
PersonalDataExport ocsBool `json:"personal-data-export" xml:"personal-data-export" mapstructure:"personal_data_export"`
ReadOnlyUserAttributes []string `json:"read_only_user_attributes" xml:"read_only_user_attributes" mapstructure:"read_only_user_attributes"`
PersonalDataExport ocsBool `json:"personal-data-export" xml:"personal-data-export" mapstructure:"personal_data_export"`
User CapabilitiesGraphUser `json:"user" xml:"user" mapstructure:"user"`
}

// CapabilitiesGraphUser holds the graph user capabilities
type CapabilitiesGraphUser struct {
ReadOnlyAttributes []string `json:"read_only_attributes" xml:"read_only_attributes" mapstructure:"read_only_attributes"`
CreateDisabled ocsBool `json:"create_disabled" xml:"create_disabled" mapstructure:"create_disabled"`
DeleteDisabled ocsBool `json:"delete_disabled" xml:"delete_disabled" mapstructure:"delete_disabled"`
ChangePasswordSelfDisabled ocsBool `json:"change_password_self_disabled" xml:"change_password_self_disabled" mapstructure:"change_password_self_disabled"`
}

// Status holds basic status information
Expand Down

0 comments on commit 5675fe8

Please sign in to comment.