private/mapping/Read-ConfluenceGroupUser.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
function Read-ConfluenceGroupUser {
    [CmdletBinding()]
    param (
        # The name of the group being mapped
        [Parameter(Mandatory,Position=0)]
        [string]
        $Group,

        # User object (should be pre-converted by Read-ConfluenceUser)
        [Parameter(Mandatory,Position=1,ValueFromPipeline)]
        [pscustomobject]
        $Data,

        # Refresh ID
        [Parameter(Mandatory,Position=2)]
        [int]
        $RefreshId
    )
    
    begin {
    }
    
    process {
        [PSCustomObject]@{
            Account_Id = $Data.Account_Id
            Group_Name = $Group
            Refresh_Id = $RefreshId
        }
    }
    
    end {
    }
}