SAPcpmsUserInfo

public struct SAPcpmsUserInfo

This struct contains user information such as id, username or roles.

  • id

    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 Cloud Platform 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]]?
  • 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, 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.