AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDiscussion.SetAccessLevel Method

Sets the object access level for a given role type.

void SetAccessLevel(
RoleTypes roleType,
AccessLevels accessLevel
);

#### Parameters

roleType
  The role type for which access level will be set; cannot be `null`.
accessLevel
  The access level; cannot be `null`.

#### Remarks

Any security change on the discussion will be automatically applied to the discussion messages in this discussion.

#### Exceptions

Exception Type | Condition
--- | ---
InvalidOperationException | Project default security is used; set `DefaultSecurity` to `false` prior to modifying the object access level.

#### See Also

IDiscussion Interface | Plumtree.Remote.PRC.Collaboration.Discussion Namespace