Skip to content

Commit

Permalink
Merge pull request #3898 from kobergj/AddGraphUserCapabilities
Browse files Browse the repository at this point in the history
Add Graph User Capabilities
  • Loading branch information
kobergj authored May 17, 2023
2 parents e8dac62 + 7ce0062 commit 5891072
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"`
Users CapabilitiesGraphUsers `json:"users" xml:"users" mapstructure:"users"`
}

// CapabilitiesGraphUsers holds the graph user capabilities
type CapabilitiesGraphUsers 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 5891072

Please sign in to comment.