Create new claim party and vendor permissions and associated role
About this task
In this example, you create a set of permissions that control access to contacts that have the Client tag. Because ClaimCenter assigns the Claim Party tag automatically for participants in a claim, this example also creates permissions for Claim Party tags. You then create a role that includes both sets of tags and assign it to a user.
Procedure
-
Start Guidewire Studio for ContactManager.
At a command prompt, navigate to the ContactManager installation folder and enter the following command:
gwb studio - In the Project window, navigate to and then double-click SystemPermissionType.ttx to open this typelist in an editor.
-
For each of the following contact tag permission typecodes, right-click an existing typecode and choose . Then enter the information for the new typecode.
New Code Name Description claimpartytagcreateCreate contact with Claim Party tag Permission to create a contact with a Claim Party tag claimpartytagdeleteDelete contact with Claim Party tag Permission to delete a contact with a Claim Party tag claimpartytageditEdit contact with Claim Party tag Permission to edit a contact with a Claim Party tag claimpartytagviewView contact with Claim Party tag Permission to view a contact with a Claim Party tag clienttagcreateCreate contact with Client tag Permission to create a contact with a Client tag clienttagdeleteDelete contact with Client tag Permission to delete a contact with a Client tag clienttageditEdit contact with Client tag Permission to edit a contact with a Client tag clienttagviewView contact with Client tag Permission to view a contact with a Client tag - In the Project window, navigate to and double click security-config.xml.
-
Associate the new permissions with the Client and Claim Party tags in the security-config.xml file.
- If you previously added other contact permissions, you already have a
ContactPermissionselement. In that case, add the twoContactTagAccessProfileelements to the existingContactPermissionselement. - If these contact permissions are the first ones you are adding, add the following new typecodes:
<ContactPermissions> <ContactTagAccessProfile tag="ClaimParty"> <ContactCreatePermission permission="claimpartytagcreate"/> <ContactDeletePermission permission="claimpartytagdelete"/> <ContactEditPermission permission="claimpartytagedit"/> <ContactViewPermission permission="claimpartytagview"/> </ContactTagAccessProfile> <ContactTagAccessProfile tag="Client"> <ContactCreatePermission permission="clienttagcreate"/> <ContactDeletePermission permission="clienttagdelete"/> <ContactEditPermission permission="clienttagedit"/> <ContactViewPermission permission="clienttagview"/> </ContactTagAccessProfile> </ContactPermissions>
- If you previously added other contact permissions, you already have a
-
Stop the ContactManager server, regenerate the data and security dictionaries, and then restart
ContactManager, as follows:
-
If ContactManager is running, open a command prompt in the ContactManager installation folder and
then enter the following command:
gwb stopServer -
To ensure that your new permissions are correctly formatted, at a command prompt, navigate to the
ContactManager installation folder and then regenerate the data and security dictionaries:
gwb genDataDictionary -
Restart ContactManager:
gwb runServer
-
If ContactManager is running, open a command prompt in the ContactManager installation folder and
then enter the following command:
-
Add one or more new permissions to a user role. For example:
-
Log in to ContactManager as a user that has the User Admin role.
For example, user name su with password gw.
- Click the Administration tab.
- In the sidebar, click .
- In the Roles screen, click Add Role.
- For Name enter Client ContactManager.
-
Add the following set of permission to the role.
For each of the following permissions, click Add and then click in the new field. Then choose a permission from the drop-down list:
- Create address book contacts
- Create contact with Claim Party tag
- Create contact with Client tag
- Delete address book contacts
- Delete contact with Claim Party tag
- Delete contact with Client tag
- Edit address book contacts
- Edit contact with Claim Party tag
- Edit contact with Client tag
- View address book contact search pages
- View address book contacts
- View contact with Claim Party tag
- View contact with Client tag
- Click Update to add the new permissions to the role.
-
Log in to ContactManager as a user that has the User Admin role.
- Click .
-
Enter the following values for the new user:
Field Value First name Pat Last name Hu Username phu Password gw - Under Roles, click Add.
- Click the empty Name field and choose Client ContactManager from the list.
- Click Update to save the new user.
-
Log in as phu with password gw and ensure that this user can edit and delete contacts that have the Client tag, the Claim Party tag, and both tags.
The sample data has contacts with all these tags set. You can also log in as another user, like su, and create users with various tags for testing. To load sample data, see Load sample data for ContactManager.
- Search for contacts with Tag specified as Vendor and verify that no contacts are returned.
- Create a user and verify that you can assign only Claim Party and Client tags.
