Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
Loading...
Searching...
No Matches
UserRoles Class Reference

A group of users and the roles associated with them. More...

#include <src/api/mip/user_roles.h>

Public Member Functions

const std::vector< std::string > & Roles () const
 Gets roles associated with a group of users.
 
 UserRoles (const std::vector< std::string > &users, const std::vector< std::string > &roles)
 UserRoles constructor.
 
const std::vector< std::string > & Users () const
 Gets users associated with a set of roles.
 

Detailed Description

A group of users and the roles associated with them.

Definition at line 47 of file user_roles.h.

Constructor & Destructor Documentation

◆ UserRoles()

UserRoles::UserRoles ( const std::vector< std::string > & users,
const std::vector< std::string > & roles )
inline

UserRoles constructor.

Parameters
usersGroup of users that share the same roles
rolesRoles shared by group of users

Definition at line 55 of file user_roles.h.

55: mUsers(users), mRoles(roles) {}
Definition roles.h:42

Member Function Documentation

◆ Roles()

const std::vector< std::string > & UserRoles::Roles ( ) const
inline

Gets roles associated with a group of users.

Returns
Roles associated with a group of users

Definition at line 69 of file user_roles.h.

69{ return mRoles; }

◆ Users()

const std::vector< std::string > & UserRoles::Users ( ) const
inline

Gets users associated with a set of roles.

Returns
Users associated with a set of roles

Definition at line 62 of file user_roles.h.

62{ return mUsers; }

The documentation for this class was generated from the following file: