AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDocument.SetAccessLevel Method

Set document 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.
accessLevel
  The access level.

#### Remarks

Note: To set custom access levels, default security must first be set to `false` by calling `DefaultSecurity = false`.

#### Exceptions

Exception Type | Condition
--- | ---
InvalidOperationException | The document has not yet been inserted, has already been removed, or is set to use default security.

#### See Also

IDocument Interface | Plumtree.Remote.PRC.Collaboration.Document Namespace