Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <Policy
- PolicyId="b65fe020-58e8-42b1-9a25-fde1760c51ed"
- Version="2.0"
- RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:permit-overrides"
- xmlns="urn:oasis:names:tc:xacml:2.0:policy:schema:os">
- <Target>
- <Resources>
- <Resource>
- <ResourceMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
- <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">
- b65fe020-58e8-42b1-9a25-fde1760c51ed
- </AttributeValue>
- <ResourceAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#string"/>
- </ResourceMatch>
- </Resource>
- </Resources>
- </Target>
- <Rule RuleId="ROLE_USER_ADMIN_read_Permit" Effect="Permit">
- <Target>
- <Actions>
- <Action>
- <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
- <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">
- read
- </AttributeValue>
- <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType "http://www.w3.org/2001/XMLSchema#string"/>
- </ActionMatch>
- </Action>
- </Actions>
- </Target>
- <Condition>
- <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-is-in">
- <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">
- ROLE_USER_ADMIN
- </AttributeValue>
- <SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:2.0:subject:role" DataType="http://www.w3.org/2001/XMLSchema#string"/>
- </Apply>
- </Condition>
- </Rule>
- <Rule RuleId="ROLE_USER_ADMIN_write_Permit" Effect="Permit">
- <Target>
- <Actions>
- <Action>
- <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
- <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">
- write
- </AttributeValue>
- <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string"/>
- </ActionMatch>
- </Action>
- </Actions>
- </Target>
- <Condition>
- <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-is-in">
- <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">
- ROLE_USER_ADMIN
- </AttributeValue>
- <SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:2.0:subject:role" DataType="http://www.w3.org/2001/XMLSchema#string"/>
- </Apply>
- </Condition>
- </Rule>
- <Rule RuleId="DenyRule" Effect="Deny"/>
- </Policy>
Add Comment
Please, Sign In to add comment