role_member_list

Gets the members of a role.

Path:
/lib/role_member_list.js

Parameters:

NameTypeDescription
filterString(Optional) Specifies the role to retrieve members for.

Example Request:

POST /redrock/query

{
	"Script":"@/lib/role_member_list.js",
	args : 
	{
		"filter" : "EVERYBODY"
	}
}

Example Response:

{
    "success": false,
    "Result": null,
    "Message": "Query has failed: Function expected.",
    "MessageID": "_I18N_RedrockQuery",
    "Exception": "Centrify.Cloud.Query.RedrockQueryException: Query has failed: Function expected. ---> Jint.JintException: Function expected. ---> Jint.Native.JsException: Exception of type 'Jint.Native.JsException' was thrown.\r\n   at Jint.ExecutionVisitor.Visit(MethodCall methodCall)\r\n   at Jint.ExecutionVisitor.Visit(MemberExpression expression)\r\n   at Jint.ExecutionVisitor.Visit(BinaryExpression expression)\r\n   at Jint.ExecutionVisitor.Visit(IfStatement statement)\r\n   at Jint.ExecutionVisitor.Visit(Program program)\r\n   at Jint.JintEngine.Run(Program program, Boolean unwrap)\r\n   --- End of inner exception stack trace ---\r\n   at Jint.JintEngine.Run(Program program, Boolean unwrap)\r\n   at Centrify.Cloud.Core.WrappedJint.<>c__DisplayClass3_0.<Run>b__0()\r\n   at Centrify.Cfw2.Core.Diagnostics.Navel.Lint.Drop[T](Func`1 func)\r\n   at Centrify.Cloud.Core.WrappedJint.Run(String text)\r\n   at Centrify.Cloud.Core.Workflow.EngineInstance.ExecJint(String script, IDictionary`2 initValues, Int64 limit)\r\n   at Centrify.Cloud.Query.QueryEngine.<>c__DisplayClass17_0.<ExecuteJint>b__0()\r\n   --- End of inner exception stack trace ---\r\n   at Centrify.Cloud.Query.QueryEngine.<>c__DisplayClass17_0.<ExecuteJint>b__0()\r\n   at Centrify.Cfw2.Core.Diagnostics.Navel.Lint.Drop[T](Func`1 func)\r\n   at Centrify.Cloud.Query.QueryEngine.<>c__DisplayClass12_2.<DoQuery2>b__4()\r\n   at Centrify.Cloud.Core.TenantContext.AsBlessedRole(String role, Func`1 allowBlessing, Action action)\r\n   at Centrify.Cloud.Core.TenantContext.AsBlessedRole(String role, Action action)\r\n   at Centrify.Cloud.Query.QueryEngine.<>c__DisplayClass12_0.<DoQuery2>b__0()\r\n   at Centrify.Cfw2.Core.Diagnostics.Navel.Lint.Drop[T](Func`1 func)\r\n   at Centrify.Cloud.Query.RedRockController.<Query>b__2_0()\r\n   at Centrify.Cloud.Core.RestHelpers.JsonRest.StandardJsonResult(Func`1 action)",
    "ErrorID": "455c912a-1737-4cc2-bbd4-efcba41ee423:b597682db03f481bac416069d397e55e",
    "ErrorCode": null,
    "InnerExceptions": [
        {
            "Detail": "Jint.JintException: Function expected. ---> Jint.Native.JsException: Exception of type 'Jint.Native.JsException' was thrown.\r\n   at Jint.ExecutionVisitor.Visit(MethodCall methodCall)\r\n   at Jint.ExecutionVisitor.Visit(MemberExpression expression)\r\n   at Jint.ExecutionVisitor.Visit(BinaryExpression expression)\r\n   at Jint.ExecutionVisitor.Visit(IfStatement statement)\r\n   at Jint.ExecutionVisitor.Visit(Program program)\r\n   at Jint.JintEngine.Run(Program program, Boolean unwrap)\r\n   --- End of inner exception stack trace ---\r\n   at Jint.JintEngine.Run(Program program, Boolean unwrap)\r\n   at Centrify.Cloud.Core.WrappedJint.<>c__DisplayClass3_0.<Run>b__0()\r\n   at Centrify.Cfw2.Core.Diagnostics.Navel.Lint.Drop[T](Func`1 func)\r\n   at Centrify.Cloud.Core.WrappedJint.Run(String text)\r\n   at Centrify.Cloud.Core.Workflow.EngineInstance.ExecJint(String script, IDictionary`2 initValues, Int64 limit)\r\n   at Centrify.Cloud.Query.QueryEngine.<>c__DisplayClass17_0.<ExecuteJint>b__0()",
            "Message": "Function expected.",
            "MessageID": "_I18N_Jint.JintException"
        }
    ]
}