@utilities.arguments_not_none<EOL><INDENT>def get_agent_ids_by_resource(self, resource_id):<DEDENT>
collection = JSONClientValidated('<STR_LIT>',<EOL>collection='<STR_LIT>',<EOL>runtime=self._runtime)<EOL>resource = collection.find_one(<EOL>dict({'<STR_LIT>': ObjectId(resource_id.get_identifier())},<EOL>**self._view_filter()))<EOL>if '<STR_LIT>' not in resource:<EOL><INDENT>result = IdList([])<EOL><DEDENT>else:<EOL><INDENT>result = IdList(resource['<STR_LIT>'])<EOL><DEDENT>return result<EOL>
Gets the list of ``Agent``  ``Ids`` mapped to a ``Resource``.

        arg:    resource_id (osid.id.Id): ``Id`` of a ``Resource``
        return: (osid.id.IdList) - list of agent ``Ids``
        raise:  NotFound - ``resource_id`` is not found
        raise:  NullArgument - ``resource_id`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        *compliance: mandatory -- This method must be implemented.*