Creates a new record with specified cid/uid in the event authorization.

    Requests with token that contains such cid/uid will have access to the specified event of a
    service.

def access_add(name, event, cid, uid, **kwargs):
    """
    Creates a new record with specified cid/uid in the event authorization.

    Requests with token that contains such cid/uid will have access to the specified event of a
    service.
    """
    ctx = Context(**kwargs)
    ctx.execute_action('access:add', **{
        'unicorn': ctx.repo.create_secure_service('unicorn'),
        'service': name,
        'event': event,
        'cids': cid,
        'uids': uid,
    })