def METHOD_NAME(account_name: Optional[str] = None,
                                      pool_name: Optional[str] = None,
                                      resource_group_name: Optional[str] = None,
                                      username: Optional[str] = None,
                                      volume_name: Optional[str] = None,
                                      opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVolumeGroupIdForLdapUserResult:
    """
    Returns the list of group Ids for a specific LDAP User
    :param str account_name: The name of the NetApp account
    :param str pool_name: The name of the capacity pool
    :param str resource_group_name: The name of the resource group. The name is case insensitive.
    :param str username: username is required to fetch the group to which user is part of
    :param str volume_name: The name of the volume
    """
    __args__ = dict()
    __args__['accountName'] = account_name
    __args__['poolName'] = pool_name
    __args__['resourceGroupName'] = resource_group_name
    __args__['username'] = username
    __args__['volumeName'] = volume_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:netapp/v20230501:getVolumeGroupIdForLdapUser', __args__, opts=opts, typ=GetVolumeGroupIdForLdapUserResult).value
    return AwaitableGetVolumeGroupIdForLdapUserResult(
        group_ids_for_ldap_user=pulumi.get(__ret__, 'group_ids_for_ldap_user'))