Add-SASProfile Function

Adds a SAS metadata profile to the list of profiles for the SAS Web Parts.

Syntax

Add-SASProfile -SiteUrl http://mysite.com <-ProfileID profile-ID>
<-ProfileName “default-profile”>
-ServiceUrl “https://internalsite.com/SASWebParts/Service.svc
-ServerName server-name <-Port port-number> -SASTrust “SASTrust@saspw
<-Password password><-ImpersonationID user-ID>

Details

Required Arguments

SiteURL
the URL for the site collection that hosts the list of profiles.
ServiceURL
the URL for the SAS Web Parts Service.
ServerName
the network name of the SAS Metadata Server.
SASTrust
the ID of the SAS Trusted User for the SAS Metadata Server.

Optional Arguments

ProfileID
the ID to use for this profile. This ID must be unique. If you do not specify a profile ID, the next available ID is used.
ProfileName
the name for the initial default profile. By default, this name is Default Site Profile.
Port
the port number of the SAS Metadata Server. By default, the port number is 8561.
Password
the password for the SAS Trusted User. If you do not specify this value, you are prompted for it at run time. You can specify the password in the sas002 format. The password is encrypted in the list of profiles.
ImpersonationID
the ID for all users when connecting to the metadata. If you do not specify the ImpersonationID, each user connects with their user ID for Microsoft SharePoint.

Example

Add-SASProfile -SiteUrl http://mysite.com  -ProfileName "Test"
-ServiceUrl "https://myinternalsite.com/SASWebPartsService/Service.svc"
-ServerName "sasserver" -SASTrust "SASTrust@saspw"