Get Roles
post
/config/sim/v1/employees/getRoles
Gets all the roles
Request
Supported Media Types
- application/json
- multipart/form-data
The input Body model that needs to be given.
Root Schema : schema
Type:
Show Source
object
-
include:
string
Objects included in the response.Example:
hierUnitId
-
includeAll:
string
This can take 2 values: basic or detailed. If 'basic' is specified, The response contains all the properties of the object except
Ext values. If 'detailed' is specified, The response contains all the properties of the object. Example:detailed
-
languages:
string
If specified, limits the translated strings returned.Example:
en-US, es-ES, es-MX
-
limit:
integer
If using paging, number of results returned in this page.Example:
0
-
offset:
integer
Starting resource record index. Not required if paging parameters are not supported.Example:
0
-
orderBy:
string
Sorts the response by the specified field name and sort order.Example:
objectNum:asc
-
searchCriteria:
string
Search criteria to filter results based on field value.Example:
where equals(objectNum,1)
Response
Supported Media Types
- application/json
200 Response
A collection of Roles.
Root Schema : RolesGetResponsev1
Type:
Show Source
object
-
count:
integer
Current response record count.Example:
9
-
hasMore:
boolean
Flag indicating if there are more objects to fetch.Example:
true
-
items:
array items
Array of role objects of the organization.
-
limit:
integer
Server page sizeExample:
10
-
offset:
integer
Starting resource record indexExample:
0
-
totalResults:
integer
Total number of rows (excluding the paging parameters)Example:
100
Nested Schema : items
Type:
array
Array of role objects of the organization.
Show Source
-
Array of:
object RolesResourceObjectv1
Model for Roles Object
Nested Schema : RolesResourceObjectv1
Type:
object
Model for Roles Object
Show Source
-
actions:
array actions
An array of enablement of actions that can be performed by the role's users
-
comment:
string
Description of the role in no more than 2000 charactersExample:
Comment
-
dataExtensions:
array dataExtensions
An array of data extensions for the Roles
-
emcControlLevel:
integer
Security Level of the role.Example:
0
-
emcModules:
array emcModules
An array of privileges for access to EMC modules by the role
-
enableRVCLevelSecurity:
boolean
A Boolean flag to restrict employees with this role to perform workstation operations only in revenue centers in which they are an operator.Example:
false
-
fields:
array fields
An array of objects containing the access control to specific fields of the EMC module
-
flmModules:
array flmModules
An array of privileges for access to FLM modules by the role
-
name:
object name
A group of strings representing the name of the role
-
objectNum:
integer
Object Number of the Role.Example:
1
-
operations:
array operations
An array of enablement of operations that can be performed by the role's users
-
visibility:
array visibility
An array of hierarchy units where the role is visible
Nested Schema : actions
Type:
array
An array of enablement of actions that can be performed by the role's users
Show Source
Nested Schema : emcModules
Type:
array
An array of privileges for access to EMC modules by the role
Show Source
Nested Schema : fields
Type:
array
An array of objects containing the access control to specific fields of the EMC module
Show Source
Nested Schema : flmModules
Type:
array
An array of privileges for access to FLM modules by the role
Show Source
Nested Schema : name
Type:
object
A group of strings representing the name of the role
Example:
{
"en-US":"Routing Group",
"de-DE":"Routing-Gruppe"
}
Nested Schema : operations
Type:
array
An array of enablement of operations that can be performed by the role's users
Show Source
Nested Schema : visibility
Type:
array
An array of hierarchy units where the role is visible
Show Source
Nested Schema : Role_actions
Type:
Show Source
object
-
enable:
boolean
A Boolean flag representing the enablement of the action for the role's usersExample:
false
-
name:
string
The name of the actionExample:
key action
-
privilegeNum:
integer
A unique reference of the privilege associated with the actionExample:
3
Nested Schema : Role_dataExtensions
Type:
Show Source
object
-
columnName:
string
Name of the extention fieldExample:
Name of the extention field
-
value:
string
Value of the extention fieldExample:
Value 1
Nested Schema : Role_emcModule
Type:
Show Source
object
-
moduleName:
string
The name of the EMC moduleExample:
Global Access
-
moduleNum:
integer
The unique reference of the EMC moduleExample:
1
-
privileges:
string
A string value of 0s & 1s of length 11 representing the enablement or disablement of the privileges associated with the EMC module's access associated with the roleExample:
00000000000
-
privilegesExt:
object Role_emcModule_privilegesExt
An object containing the descriptive options list associated with the EMC module's access associated with the role
Nested Schema : Role_emcModule_privilegesExt
Type:
object
An object containing the descriptive options list associated with the EMC module's access associated with the role
Show Source
-
add:
boolean
A Boolean flag to allow the addition of records of the EMC module for the role's usersExample:
false
-
addOverride:
boolean
A Boolean flag representing to allow override of records of the EMC module for the role's usersExample:
false
-
allowDuplicateName:
boolean
A Boolean flag representing to allow duplicate names in records for the EMC module for the role's usersExample:
false
-
allowDuplicateObjNum:
boolean
A Boolean flag representing to allow duplicate object numbers in records for the EMC module for the role's usersExample:
false
-
delete:
boolean
A Boolean flag representing the enablement of the delete records of the EMC module for the role's usersExample:
true
-
edit:
boolean
A Boolean flag to allow the editing of records of the EMC module for the role's usersExample:
true
-
fieldLevelSecurity:
boolean
A Boolean flag representing the enablement of the field level security for the EMC module for the role's usersExample:
false
-
view:
boolean
A Boolean flag to allow the viewing of records of the EMC module for the role's usersExample:
true
Nested Schema : Role_fields
Type:
Show Source
object
-
controls:
array controls
An array of controls for each EMC module
-
moduleName:
string
Name of the EMC module.Example:
Menu Item Masters
-
moduleNum:
integer
Unique reference of the moduleExample:
1
Nested Schema : Role_fields_controls
Type:
Show Source
object
-
controlName:
string
Name of the field controlExample:
Global Access
-
controlNum:
integer
Unique reference of the field controlExample:
1
-
privileges:
string
A string value of 0's & 1's representing the enablement or disablement of the privileges associated with the field controlExample:
00000000
-
privilegesExt:
object Role_controls_privilegesExt
An object containing the descriptive options list associated with the EMC module's access associated with the role
Nested Schema : Role_controls_privilegesExt
Type:
object
An object containing the descriptive options list associated with the EMC module's access associated with the role
Show Source
-
editable:
boolean
A Boolean flag indicating the field is editableExample:
true
-
exclude:
boolean
A Boolean flag indicating if the field is excluded.Example:
false
-
viewOnly:
boolean
A Boolean flag indicating the field is only for ViewingExample:
true
Nested Schema : Role_flmModule
Type:
Show Source
object
-
moduleName:
string
The name of the FLM moduleExample:
Global Access
-
moduleNum:
integer
The unique reference of the FLM moduleExample:
1
-
privileges:
string
A string value of 0s & 1s of length 11 representing the enablement or disablement of the privileges associated with the FLM module's access associated with the role. Bit positions 1, 2, 3, 4 and 8 represent view, edit, add, delete and addOverride respectively.Example:
11110001000
-
privilegesExt:
object Role_flmModule_privilegesExt
An object containing the descriptive options list associated with the FLM module's access associated with the role
Nested Schema : Role_flmModule_privilegesExt
Type:
object
An object containing the descriptive options list associated with the FLM module's access associated with the role
Show Source
-
add:
boolean
A Boolean flag to allow the addition of records of the FLM module for the role's usersExample:
false
-
addOverride:
boolean
A Boolean flag representing to allow override of records of the FLM module for the role's usersExample:
false
-
delete:
boolean
A Boolean flag representing the enablement of the delete records of the FLM module for the role's usersExample:
true
-
edit:
boolean
A Boolean flag to allow the editing of records of the FLM module for the role's usersExample:
true
-
view:
boolean
A Boolean flag to allow the viewing of records of the FLM module for the role's usersExample:
true
Nested Schema : Role_operations
Type:
Show Source
object
-
enable:
boolean
A Boolean flag representing the enablement of the operation for the role's usersExample:
false
-
name:
string
The name of the operationExample:
key action
-
privilegeNum:
integer
A unique reference of the privilege associated with the operationExample:
3
Nested Schema : Role_visibility
Type:
Show Source
object
-
hierUnitId:
integer
Unique hierarchy unit value.Example:
1
-
hierUnitName:
object hierUnitName
Hier Unit Name
-
hierUnitObjNum:
integer
Hierarchy unit object numberExample:
1
-
propagateToChildren:
integer
A Boolean flag to make the role visible in the selected zones/locations and all children. Deselect to make the role visible only in the selected zone/locationExample:
1
Nested Schema : hierUnitName
Type:
object
Hier Unit Name
Example:
{
"en-US":"Enterprise",
"de-DE":"Unternehmen",
"es-MX":"Empresa"
}