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
id
id of the current user
userName
name of the current user
roles
current user’s roles
detail
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.
familyName
The family name or last name of the user. The default value is
nil
.givenName
The given name or first name of the user. The default value is
nil
.emails
An array of dictionaries containing email information for the user. The default value is
nil
.registrationId
The registration ID of the user. The default value is
nil
.others
A dictionary containing any additional information related to the user. The default value is
nil
.