< Back

New-AadrmRightsDefinition

Fri Jan 10, 2020 6:25 pm

NAME New-AadrmRightsDefinition



SYNOPSIS

Creates a rights definition object for Rights Management.





SYNTAX

New-AadrmRightsDefinition [-DomainName <String>] [-EmailAddress <String>] -Rights

<System.Collections.Generic.List`1[System.String]> [<CommonParameters>]





DESCRIPTION

The New-AadrmRightsDefinition cmdlet creates a rights definition object that you store as a variable and then use

to create or update a custom Rights Management template when you use the Add-AadrmTemplate or

Set-AadrmTemplateProperty cmdlet.



A rights definition object expresses the rights that users have to content that Azure Rights Management protects.

You can specify a user, a group, or all users in an organization.



Similar configuration can also be done when you create or configure a custom template in the Azure portal, but

this cmdlet offers more fine-grained control.



Tip: You can this cmdlet to enable secure collaboration with other organizations when they have user accounts in

Azure Active Directory and Office 365. For example, provide an external group VIEW and DOCEDIT rights to

collaborate on a joint project. Or, provide VIEW rights to all users in a partner organization.



For more information about custom templates, including how to configure them in the Azure portal, see Configuring

and managing templates for Azure Information Protection

(https://docs.microsoft.com/information- ... -templates).





PARAMETERS

-DomainName <String>

Specifies a domain name for your organization or another organization, to be used for granting rights when you

create or update a custom template. When an organization has more than one domain, it does not matter which

domain name you specify; users from all verified domains for that organization are automatically included.



Specify one domain name only for all users in an organization; to grant rights to more than one organization,

create another Rights Definition object.



Note that for authentication to be successful for Azure AD, the user must have an account in Azure Active

Directory. Office 365 users automatically have an account in Azure Active Directory.



You can specify domain names from social providers (such as gmail.com) but authentication for accounts that

are not in Azure AD are supported for email only, and when Exchange Online is configured for the new

capabilities for Office 365 Message Encryption.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-EmailAddress <String>

Specifies the email address of a user or group. The user or group can be internal to your organization, or

external. However, for Azure AD authentication to be successful, the user must have an account in Azure Active

Directory. Office 365 users automatically have an account in Azure Active Directory.



You can specify an email address from a social provider (for example, a Gmail account) but authentication for

accounts that are not in Azure AD are supported for email only, and when Exchange Online is configured for the

new capabilities for Office 365 Message Encryption.



The cmdlet associates the rights that the Rights parameter specifies to the user or group that the address

specifies.



Tip: If you want to specify all users in your organization or all users in another organization, use the

DomainName parameter.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Rights <System.Collections.Generic.List`1[System.String]>

Specifies a list of rights. The list contains one or more of the following:



- VIEW : Interpreted by most applications as allowed to present the data on the screen.



- EDIT : Interpreted by most applications as allowed to modify content in the document and save it.



- DOCEDIT : Interpreted by most applications as allowed to modify the content of the document.



- EXTRACT : Interpreted by most applications as allowed to copy the content to the clipboard or otherwise

extract the content in unencrypted form.



- OBJMODEL : Interpreted by most applications as allowed to access the document programmatically; for example,

by using macros.



- EXPORT : Interpreted by most applications as allowed to save the file in unencrypted form. For example, this

right allows you to save in a different file format that does not support protection.



- PRINT : Interpreted by most applications as allowed to print the document.



- OWNER : User has all rights on the document, including the ability to remove protection.



- FORWARD : Interpreted by most applications as allowed to forward an email message, and to add recipients to

the To and Cc lines.



- REPLY : Interpreted by most applications as allowed to select reply to an email message, without allowing

changes in the To or Cc lines.



- REPLYALL : Interpreted by most applications as allowed to reply to all recipients of an email message, but

does not allow the user to add recipients to the To or Cc lines.



Note: For clarity, the documentation and display text from the module shows these rights as all upper-case

letters. However, the values are not case-sensitive and you can specify them in lower or upper case.



For more information about the usage rights, see Configuring usage rights for Azure Rights Management

(https://docs.microsoft.com/information- ... age-rights).



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES









--- Example 1: Create a rights definition object for a user ---



PS C:\\>$R1 = New-AadrmRightsDefinition -EmailAddress "ElisaDaugherty@Contoso.com" -Rights "VIEW","DOCEDIT"



This command creates a rights definition object for the specified user and stores this policy in a variable named

R1, which can then be used to create or update a custom template.



The command includes the rights VIEW and DOCEDIT for a user in the Contoso organization.

-- Example 2: Create a rights definition object for all users --



PS C:\\>$R2 = New-AadrmRightsDefinition -DomainName "Contoso.com" -Rights "VIEW"



This command creates a rights definition object for the Contoso organization and stores this policy in a variable

named R2, which can then be used to create or update a custom template. The command includes the VIEW right for

all users in the Contoso organization.



RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=400629

Add-AadrmTemplate

Set-AadrmTemplateProperty