User

The SDK allows for the host application to retrieve or update user information.

Fetch user information

Parameters:

expansions: The expansions applied for a user

Expansions options are below:

  • ASSOCIATEDUSERS

  • SHAREDINFORMATION

  • ASSOCIATEDACCOUNT

  • CUSTOMFIELDS

  • ROLE

To fetch user information, the following API can be used.

let userService = UserService()
userService.fetch(then: { result in 
	if let user = result.value {
		// Success
		completionHandler(user)
	} else {
		// failure
	}
})

Update user information

The HostApp can update the user information upon success.

Concrete example

To update user information, the following API can be used.

Last updated