FEATURE: Add user update, anonymize and delete API scopes (#11335)

This commit is contained in:
David Taylor 2020-11-24 12:54:24 +00:00 committed by GitHub
parent 7ad2c2bdd8
commit 0c685a46de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -37,7 +37,10 @@ class ApiKeyScope < ActiveRecord::Base
bookmarks: { actions: %w[users#bookmarks], params: %i[username] },
sync_sso: { actions: %w[admin/users#sync_sso], params: %i[sso sig] },
show: { actions: %w[users#show], params: %i[username external_id] },
check_emails: { actions: %w[users#check_emails], params: %i[username] }
check_emails: { actions: %w[users#check_emails], params: %i[username] },
update: { actions: %w[users#update], params: %i[username] },
anonymize: { actions: %w[admin/users#anonymize] },
delete: { actions: %w[admin/users#destroy] },
},
email: {
receive_emails: { actions: %w[admin/email#handle_mail] }

View File

@ -3752,6 +3752,9 @@ en:
sync_sso: Synchronize a user using SSO.
show: Obtain information about an user.
check_emails: List user emails.
update: Update user profile information.
anonymize: Anonymize user accounts.
delete: Delete user accounts.
email:
receive_emails: Combine this scope with the mail-receiver to process incoming emails.