Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

# MgSite Class Reference
[MgSite]

The Site Service contains one class, MgSite. More...

Inherits MgGuardDisposable.

List of all members.

## Public Member Functions
STRING | CreateSession ()
| Creates a session repository for the current user.
void | DestroySession (CREFSTRING session)
| Destroys the specified session and discards any resources stored in the session repository.
MgByteReader * | EnumerateGroups (CREFSTRING user)
| Gets the list of group memberships for a user.
MgByteReader * | EnumerateGroups ()
| Gets a list of available groups.
MgStringCollection * | EnumerateRoles (CREFSTRING user)
| Gets a list of roles for a user.
MgByteReader * | EnumerateUsers (CREFSTRING group)
| Gets a list of users.
STRING | GetCurrentSession ()
| Gets the current session identifier.
STRING | GetUserForSession ()
| Gets the user for the current session identifier. An exception will be thrown if the session is invalid or does not exist.

## Detailed Description

The Site Service contains one class, MgSite.

Remarks:
  The MgSite class contains methods which allow access to basic site-related functionality:
  - Enumerate users
  - Enumerate groups
  - Create and destroy user sessions

Comments or suggestions? Send us feedback.