< Previous | Next >

Lesson 4: Restrict access to source control artifacts

In this lesson, you restrict access to a stream and a component to members of the team area that owns the stream and component. You will also restrict access to a specific folder and file that are under source control.

Procedure

To restrict access to streams and components, and to files and folders that are under source control:

  1. In the Rational Team Concert™ client for Eclipse IDE, log on as Helen.
  2. If My Tutorial Project Area is not shown in the Team Artifacts view, right-click your repository connection and select Manage Connected Project Areas. Select My Tutorial Project Area, then click Finish. Expand My Tutorial Project Area, and then expand Source Control. A default project area stream and component are displayed.
  3. Create a stream for the team area:
    1. Right-click Source Control and select New > Stream.
    2. Enter a name, such as My Tutorial Team Area Stream.
    If the default owner of the stream is not the team area, click Browse and select My Tutorial Team Area. The Visibility field is set to My Tutorial Project Area. All users who have access to the project area have access to the stream.
    The Stream editor
  4. Create a component:
    1. In the Components section, click New.
    2. Enter a name, such as My Tutorial Team Area Component.
    3. Click OK, and then click Save to save the stream.
    The default owner of the component is the team area, which is displayed in parentheses next to the component name.
    Components section of stream editor with My Tutorial Team Area Component listed.
  5. Log out, and then right-click the repository connection and select Properties.
  6. On the Jazz Repository Connection page, replace Helen's user ID and password with Bill's.
  7. Click OK to log on as Bill. The My Tutorial Team Area Stream and My Tutorial Team Area Component are visible.
  8. Log out, and then log on as Helen. Double-click My Tutorial Team Area Stream to open it. From the Visibility list, select My Tutorial Team Area.
    Visibility field with My Tutorial Team Area selected
  9. In the Components section, select My Tutorial Team Area Component, and then click Change Owner.
  10. Expand the project area and select the team area. Select Restrict to members of the team area and its child team areas, click OK, and then click Save to save your changes to the stream. You have now made the stream and component visible to only members of the team area.
    The Select a user or team area window with My Tutorial Team Area selected. The Restrict to members of this team area and its child team areas check box is selected.
  11. Log out, and then log on as Bill. Expand Source Control. Because you are logged on as Bill, who is not a team member, My Tutorial Team Area Stream and My Tutorial Team Area Component are not shown.
    Bill’s Team Artifacts view. The expanded Source Control folder shows only the default project area stream and component.
  12. Log out, and then log on as Helen. Create a repository workspace:
    1. Right-click My Tutorial Team Area Stream and select New > Repository Workspace.
    2. Enter a name, such as Helen's My Tutorial Team Area Stream Workspace, and then click Finish.
  13. If the Pending changes view is not already open, click Window > Show View > Other. Expand Jazz Source Control, and then select Pending Changes.
  14. Create a project and share it with a team area:
    1. Open the Navigator view by clicking Window > Show View > Other > General > Navigator.
    2. In the Navigator view, right-click and select New > Project.
    3. Select General project, and then click Next.
    4. Enter a name, such as My Sample Project, and then click Finish.
    5. Right-click the project and select Team > Share Project.
    6. Select Jazz Source Control, and then click Next. Expand the team area stream, select My Tutorial Team Area Component, and click Finish to add the project to the team area component.
      Share Project in Jazz window with My Tutorial Team Area Component selected
    7. Click Pending Changes, and then expand the component. The new project is shown in the Outgoing folder.
    8. Right-click Outgoing and select Deliver to deliver the project to the stream.
  15. Add Bill to the team area:
    1. In the web client, make sure that you are logged on as Helen.
    2. Navigate to My Tutorial Team Area in My Tutorial Project Area.
    3. In the Members section, click Add. Add Bill, then assign him the Team Member role. Click Finish.
    4. Click Save to save your changes to the team area.
    Now that Bill is a member of the team area, he can access the stream and component.
  16. In the Rational Team Concert client for Eclipse IDE, log out, and then log on as Bill. Under My Tutorial Project Area, expand Source Control, and then expand My Tutorial Team Area Stream.
  17. Right-click My Tutorial Team Area Component and select Show > Repository Files. The My Sample Project folder is displayed.
    Repository Files view with My Sample Project shown
  18. Log out, and then log on as Helen. In the Repository Files view, right-click the My Sample Project folder and select Change Access Control. Currently, only members of the team area can access the component and its folders and files. For each folder or file, you can further restrict access.
  19. Select Contributor so that only Helen has access to the folder and its contents. Click OK.
    Select Read Access Permission window with Contributor selected
  20. Log out, and then log on as Bill. Right-click My Tutorial Team Area Component and select Show > Repository Files. The following message is displayed.
    Error message saying that the current user does not have read access to the requested versionable files.

Lesson checkpoint

In this lesson, you learned how to do these tasks:
  • Restrict access to streams and components to members of a team area.
  • Restrict access to folders and files under source control to a specific user.
< Previous | Next >

video icon Video

Jazz.net channel
Software Education channel

learn icon Courses

IoT Academy
Skills Gateway

ask icon Community

Jazz.net
Jazz.net forums
Jazz.net library

support icon Support

IBM Support Community
Deployment wiki