User Access Management
Pre-requisite: The user has to be signed in to perform the following operations.
Get User with Access
To get the list of users with access, the following method can be called.
spaceId(required): The id of the space.
Factory.spaceService.getSpaceSharedUsers(spaceId: String) -> IVPublisher<[SpaceSharedUser]>
Update User Access
To update the user access, the following method can be called.
spaceId(required): The id of the space.spaceUserId(required): The id of the user.request(required): The updated user access information.
Factory.spaceService.updateSpaceShareDetail(spaceId: String, spaceUserId: String, request: SpaceShareUserInviteRequest) -> IVPublisher<Void>
Revoke User Access
To delete the user access, the following method can be called.
spaceId(required): The id of the space.spaceUserId(required): The id of the user.type(required): The type of Sharing. eg. QueryItem = [.init(key: .type, value: .equal(value: “Security”))]
Factory.spaceService.revokeSpaceShareAccess(spaceId: String, spaceUserId: String, queryItems: [QueryItem]?) -> IVPublisher<Void>