Service Manager
CurrentUserIdentityType
Returns the identity type (such as employee, external contact, and so on) of the user associated with the current session. Use this function if you have business rules that are associated with a certain identity type. See Development Information for information about user types.
The identity type comes from the subtype of the user business object. Every user is represented by an instance of a business object that implements the identity contract. The name of the identity contract is the identity type. By default, the business objects that implement the identity contract are employee and external contact, although your tenant may have others, such as partner.
Syntax
CurrentUserIdentityType()
Enabled For
For a description of the business object categories, see Notes on "Enabled For".
Business Object Category | Yes/No |
---|---|
Business Rules: Before-Save Rules | Yes1 |
Business Rules: Calculation Rules (After Save, with or without Also Recalculate on Load) | Yes |
Business Rules: Calculation Rules (Before Save or Always, without Also Recalculate On Load) | Yes1 |
Business Rules: Calculation Rules (Before Save or Always, with Recalculate On Load) | Yes |
Business Rules: Editing Rules | Yes1 |
Business Rules: Initialization Rules | Yes1 |
Business Rules: Read Only Rules | Yes1 |
Business Rules: Required Rules | Yes1 |
Business Rules: Validation Rules | Yes1 |
Client Expressions | Yes |
Object Permissions | No |
Services | Yes |
LDAP | Yes |
Mobile | Yes |
Quick Actions (except UI Quick Actions) | Yes1 |
UI Quick Actions | Yes |
Reports | Yes1 |
Search/Dashboard without field references | Yes1 |
Search/Dashboard with field references | No |
1. Except in services. |
Parameters
none |
Return Value
Text value.
Example
$(CurrentUserIdentityType())
The example above returns "Employee."
Was this article useful?
Copyright © 2019, Ivanti. All rights reserved.