async def METHOD_NAME(
    backend, alice, bob, alice_ws, realm, realm_generate_certif_and_update_roles_or_fail
):
    await backend.realm.start_reencryption_maintenance(
        alice.organization_id,
        alice.device_id,
        realm,
        2,
        {alice.user_id: b"whatever"},
        DateTime(2000, 1, 2),
    )
    # Get roles allowed...
    roles = await backend.realm.get_current_roles(alice.organization_id, realm)
    assert roles == {alice.user_id: RealmRole.OWNER}
    rep = await apiv2v3_realm_get_role_certificates(alice_ws, realm)
    assert isinstance(rep, RealmGetRoleCertificatesRepOk)