@rpcmethod(
    name='configuration.sc.list.others',
    signature=[],
    login_required=satnet_settings.JRPC_LOGIN_REQUIRED
)
def list_spacecraft_others(**kwargs):
    # 1) user must be obtained from the request
    user, username = account_models.get_user(
        http_request=kwargs.get('request', None)
    )
    # 2) only the spacecraft that belong to the incoming user are excluded
    return [
        str(s.identifier) for s in segments.Spacecraft.objects.exclude(
            user=user
        )
    ]
JRPC test: configuration.sc.list.mine
dataset/ETHPy150Open satnet-project/server/services/configuration/jrpc/views/segments/spacecraft.py/list_spacecraft_others