Skip to main content

current_user_in_group

Returns a boolean based on whether the current user running the query belongs to a given group. Can be called in two forms using one or two arguments.

Parameter

Type

Description

organization

string

the name of the organization

group_id

string

the id of the group

Returns: string

Example

Query:

PREFIX : <https://ddw-doccorp.linked.data.world/d/sparql-function-sample-queries/>
PREFIX fn: <http://data.world/function/functions#>

SELECT (fn:current_user_in_group("ddw-doccorp/members") AS ?current_user_in_group)
{
}

Run query

Results:

current_user_in_group

true