SAPcpmsUserInfo
public struct SAPcpmsUserInfo
This struct contains user information such as id, username or roles.
-
id of the current user
Declaration
Swift
public let id: String -
name of the current user
Declaration
Swift
public let userName: String -
current user’s roles. Only exists if the access control is enabled in SAP Mobile Services Cockpit.
Declaration
Swift
public let roles: [String]? -
Other information from the service. e.g. Info message when the application does not enable access control and because of this no role is available.
Declaration
Swift
public let detail: String? -
family name of the current user
Declaration
Swift
public let familyName: String? -
given name of the current user
Declaration
Swift
public let givenName: String? -
email addresses associated with the current user
Declaration
Swift
public let emails: [[String : Any]]? -
registrationId associated with the current user
Declaration
Swift
public let registrationId: String? -
other fields from the server response
Declaration
Swift
public let others: [String : Any]? -
Initializer for SAPcpmsUserInfo
Declaration
Swift
public init(id: String, userName: String, roles: [String]? = nil, detail: String? = nil, familyName: String? = nil, givenName: String? = nil, emails: [[String : Any]]? = nil, registrationId: String? = nil, others: [String : Any]? = nil)Parameters
idid of the current user
userNamename of the current user
rolescurrent user’s roles
detailother information from the service. e.g. Info message when the application does not enable access control and because of this no role is available.
familyNameThe family name or last name of the user. The default value is
nil.givenNameThe given name or first name of the user. The default value is
nil.emailsAn array of dictionaries containing email information for the user. The default value is
nil.registrationIdThe registration ID of the user. The default value is
nil.othersA dictionary containing any additional information related to the user. The default value is
nil.