<commit_before>function Get-SCSMWorkItemAffectedUser {
    <#
    .SYNOPSIS
        Function to retrieve the Affected User of a Work Item

    .DESCRIPTION
        Function to retrieve the Affected User of a Work Item

    .PARAMETER SMObject
        Specifies the SMObject(s) on which the affected need to be retrieve.

    .PARAMETER Guid
        Specifies the GUID of the SMObject on which the affected need to be retrieve.

    .EXAMPLE
        Get-SCSMWorkItemAffectedUser -SMObject $SR,$IR

    .EXAMPLE
        $SR,$IR | Get-SCSMWorkItemAffectedUser

    .EXAMPLE
        Get-SCSMWorkItemAffectedUser -GUID 5bd5e783-c8a1-0217-9e19-f82823ef4f87

    .NOTES
        <NAME>
        @lazywinadmin
        lazywinadmin.com
#>

    [CmdletBinding(DefaultParameterSetName = 'GUID')]
    param
    (
        [Parameter(ParameterSetName = 'SMObject',
            Mandatory = $true,
            ValueFromPipeline = $true)]
        $SMObject,

        [Parameter(ParameterSetName = 'GUID',
            Mandatory = $true)]
        $Guid
    )

    BEGIN {
        Import-Module -Name SMLets -ErrorAction Stop

        # AffectedUser RelationshipClass
        $RelationshipClass_AffectedUser = 'dff9be66-38b0-b6d6-6144-a412a3ebd4ce'
        $RelationshipClass_AffectedUser_Object = Get-SCSMRelationshipClass -id $RelationshipClass_AffectedUser
    }
    PROCESS {
        IF ($PSBoundParameters['GUID']) {
            foreach ($Item in $GUID) {
                $SMObject = Get-SCSMObject -id $item<commit_msg>Add link<commit_after>function Get-SCSMWorkItemAffectedUser {
    <#
    .SYNOPSIS
        Function to retrieve the Affected User of a Work Item

    .DESCRIPTION
        Function to retrieve the Affected User of a Work Item

    .PARAMETER SMObject
        Specifies the SMObject(s) on which the affected need to be retrieve.

    .PARAMETER Guid
        Specifies the GUID of the SMObject on which the affected need to be retrieve.

    .EXAMPLE
        Get-SCSMWorkItemAffectedUser -SMObject $SR,$IR

    .EXAMPLE
        $SR,$IR | Get-SCSMWorkItemAffectedUser

    .EXAMPLE
        Get-SCSMWorkItemAffectedUser -GUID 5bd5e783-c8a1-0217-9e19-f82823ef4f87

    .NOTES
        <NAME>
        @lazywinadmin
        lazy<EMAIL>
    .LINK
        https://github.com/lazywinadmin/PowerShell
#>

    [CmdletBinding(DefaultParameterSetName = 'GUID')]
    param
    (
        [Parameter(ParameterSetName = 'SMObject',
            Mandatory = $true,
            ValueFromPipeline = $true)]
        $SMObject,

        [Parameter(ParameterSetName = 'GUID',
            Mandatory = $true)]
        $Guid
    )

    BEGIN {
        Import-Module -Name SMLets -ErrorAction Stop

        # AffectedUser RelationshipClass
        $RelationshipClass_AffectedUser = 'dff9be66-38b0-b6d6-6144-a412a3ebd4ce'
        $RelationshipClass_AffectedUser_Object = Get-SCSMRelationshipClass -id $RelationshipClass_AffectedUser
    }
    PROCESS {
        IF ($PSBoundParameters['GUID']) {
            foreach ($Item in $GUID) {
                $SMObject = Get-SCSMObject -id $item
{'fraction_non_alphanumeric': 0.07719986915276415, 'fraction_numerical': 0.02551521099116781, 'mean_word_length': 2.3131094257854823, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2404343', 'n_tokens_mistral': 1007, 'n_tokens_neox': 946, 'n_words': 218}