forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 22
FineGrainedFieldPermissions
Ondřej Košarko edited this page Jan 11, 2016
·
1 revision
Fine-grained field permissions have been implemented based on Access Control Lists (ACL) consisting of multiple Access Control Entries (ACE).
Input fields in input-forms.xml can now have ACLs specified in the following manner:
<acl>
policy=allow,action=write,grantee-type=group,grantee-id=10;
policy=deny,action=read,grantee-type=user,grantee-id=*
</acl>
ACL consists of semicolon separated ACEs. The first matching entry for user that is logged in is applied in order to verify, that the user is able to see and possibly edit given field.
Asterisk can be used as grantee id used and will be interpreted as a wildcard character that matches any value.
Possible values for ACE fields are:
- policy: allow or deny
- action: read or write
- grantee-type: user or group
- grantee-id: user id or group id or *
Fields that are shown based on ACL are rendered with a special background in GUI.
Complete example of a field definition:
<!-- DC.Relation.Replaces -->
<field>
<dc-schema>dc</dc-schema>
<dc-element>relation</dc-element>
<dc-qualifier>replaces</dc-qualifier>
<component-label> </component-label>
<repeatable>true</repeatable>
<label>Replaces</label>
<input-type>onebox</input-type>
<hint>A related resource that is supplanted, displaced, or superseded by the described resource.</hint>
<autocomplete>solr-handle</autocomplete>
<required></required>
<collapsible>Special fields</collapsible>
<acl>
policy=deny,action=read,grantee-type=user,grantee-id=*
</acl>
</field>
Getting Started
Features
- All Features — full categorised list
- CLARIN Licenses
- PIDs & Handles
- Featured Services / Refbox
- Field-Level Permissions
- File Previews
- Sharing a Submission
- Personal Access Tokens
- DOI Configuration per Community
- ROR Authority
Operations
- Kubernetes Deployment
- Samples (.env, Nginx)
- Nginx + Shibboleth
- Handle Server · Setup (v7)
- Shibboleth · DiscoJuice
- Shibboleth Accounts
- S3 Storage · CESNET S3
- Google Analytics
- Matomo
- Solr
- Logging
- Custom Namespace
- Health Report
For Users
Development
Reference
- Authorizations
- Metadata Info
- Citations (proposal)
- Repository Checklist
- Search, Browse & Filters
- Localization
- Importing Items (CLI)
- NFA Import - Steps
- OpenAIRE
- DOI Registration
- Inclusion in OLAC
- Unit Testing
- Deploy Checks
- Troubleshooting
- Versioning Theory
- Dynamic Resource Versioning
- Metashare Import · Schema
- Web Server Overview
- LINDAT Common Theme
- Workshop 2016 Results
- WebLicht Integration
- Google Dataset Search
Archive (v5 / stale)
- Old Home (v5)
- Installation (v5)
- Prerequisites (v5)
- Connecting Tomcat with Apache
- Using Apache
- Building Shibboleth FastCGI
- Shibboleth Install (v5)
- EUDAT Replication
- Backup (v5)
- Spring Social / Google Drive (v5)
- Clarin (→ Repository Checklist)
- Control Panel (v5)
- Overlays (v5)
- Configuration (v5)
- Speeding Up Downloads
- Debugging (v5)
- Selenium (v5)
- Code Contributions (v5)
- Best Practices (v5)
- Testing Hudson
- Working on Windows
- Prerequisites Checklist (v5)
- Migration to DSpace 7.2.1
- Upgrade From Lindat
- Piwik (→ Matomo) · Piwik Cleaning