Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

20

Downloads of v 0.38.0:

20

Last Update:

12 Jun 2025

Published Date:

12 Jun 2025

Reviewed Date:

16 Jul 2025

Reviewer:

gravatar

Package Maintainer(s):

Software Author(s):

  • Common Fate

Tags:

Granted CLI

(Waiting for Maintainer to take corrective action)

  • 1
  • 2
  • 3

0.38.0 | Updated: 12 Jun 2025

Downloads:

20

Downloads of v 0.38.0:

20

Published:

12 Jun 2025

Reviewed:

16 Jul 2025

Reviewer:

gravatar

Maintainer(s):

Software Author(s):

  • Common Fate

Granted CLI 0.38.0

(Waiting for Maintainer to take corrective action)

Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by Common Fate. The inclusion of Common Fate trademark(s), if any, upon this webpage is solely to identify Common Fate goods or services and not for commercial purposes.

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details
IMPORTANT

This version is in moderation and has not yet been approved. This means it doesn't show up under normal search.

  • Until approved, you should consider this package version unsafe - it could do very bad things to your system (it probably doesn't but you have been warned, that's why we have moderation).
  • This package version can change wildly over the course of moderation until it is approved. If you install it and it later has changes to this version, you will be out of sync with any changes that have been made to the package. Until approved, you should consider that this package version doesn't even exist.
  • You cannot install this package under normal scenarios. See How to install package version under moderation for more information.
  • There are also no guarantees that it will be approved.
WARNING

There are versions of this package awaiting moderation (possibly just this one). See the Version History section below.

mrbungie (maintainer) on 12 Jun 2025 19:43:07 +00:00:

User 'mrbungie' (maintainer) submitted package.

chocolatey-ops (reviewer) on 12 Jun 2025 20:16:17 +00:00:

granted has passed automated validation. It may have or may still fail other checks like testing (verification).
NOTE: No required changes that the validator checks have been flagged! It is appreciated if you fix other items, but only Requirements will hold up a package version from approval. A human review could still turn up issues a computer may not easily find.

Guidelines

Guidelines are strong suggestions that improve the quality of a package version. These are considered something to fix for next time to increase the quality of the package. Over time Guidelines can become Requirements. A package version can be approved without addressing Guideline comments but will reduce the quality of the package.

  • ProjectUrl and ProjectSourceUrl are typically different, but not always. Please ensure that projectSourceUrl is pointing to software source code or remove the field from the nuspec. More...
Notes

Notes typically flag things for both you and the reviewer to go over. Sometimes this is the use of things that may or may not be necessary given the constraints of what you are trying to do and/or are harder for automation to flag for other reasons. Items found in Notes might be Requirements depending on the context. A package version can be approved without addressing Note comments.

  • The DocsUrl element in the nuspec file should be a valid Url. The reviewer will ensure the specified Url is valid. More...
  • The LicenseUrl element in the nuspec file should be a valid Url. The reviewer will ensure the specified Url is valid. More...
  • The IconUrl element in the nuspec file should be a valid Url. The reviewer will ensure the specified Url is valid. More...

chocolatey-ops (reviewer) on 13 Jun 2025 07:48:03 +00:00:

granted has passed automated package testing (verification). The next step in the process is package scanning.
Please visit https://gist.github.com/choco-bot/f523b1ae75a6fbd9654e7b8148d68848 for details.
This is an FYI only. There is no action you need to take.

chocolatey-ops (reviewer) on 13 Jun 2025 08:04:51 +00:00:

granted has passed automated virus scanning.

flcdrg (reviewer) on 16 Jul 2025 07:51:03 +00:00:

Please resolve these to allow this package to be approved:

  • Include a checksum in chocolateyInstall.ps1

thanks,
David

chocolatey-ops (reviewer) on 05 Aug 2025 07:52:27 +00:00:

We've found granted v0.38.0 in a submitted status and waiting for your next actions. It has had no updates for 20 or more days since a reviewer has asked for corrections. Please note that if there is no response or fix of the package within 15 days of this message, this package version will automatically be closed (rejected) due to being stale.

Take action:

  • Log in to the site and respond to the review comments.
  • Resubmit fixes for this version.
  • If the package version is failing automated checks, you can self-reject the package.

If your package is failing automated testing, you can use the chocolatey test environment to manually run the verification and determine what may need to be fixed.

Note: We don't like to see packages automatically rejected. It doesn't mean that we don't value your contributions, just that we can not continue to hold packages versions in a waiting status that have possibly been abandoned. If you don't believe you will be able to fix up this version of the package within 15 days, we strongly urge you to log in to the site and respond to the review comments until you are able to.

Description

Granted CLI

Granted is a command line interface (CLI) application which simplifies access to cloud roles and allows multiple cloud accounts to be opened in your web browser simultaneously.

Features

  • Simplified AWS SSO: Easily assume AWS roles with simplified commands
  • Multiple Browser Sessions: Open multiple cloud accounts simultaneously in different browser profiles
  • Profile Management: Manage AWS CLI profiles with ease
  • Cross-Platform: Works on Windows, macOS, and Linux
  • Security Focused: Built with security best practices in mind

Usage

After installation, you can use Granted with commands like:

assume <profile-name>
assume -c <profile-name> # Web browser will open in a new tab
granted <subcommand>

For complete documentation, visit: https://docs.commonfate.io/introduction

Notes

This package automatically detects your system architecture (x64, x86, ARM64) and installs the appropriate binary.

The package is maintained independently and is not officially supported by Common Fate.


tools\chocolateyInstall.ps1
$ErrorActionPreference = 'Stop'

# Package information
$packageName = 'granted'
$version = $env:ChocolateyPackageVersion
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

# Architecture detection
$architecture = $env:PROCESSOR_ARCHITECTURE
$arch = switch ($architecture) {
    'AMD64' { 'x86_64' }
    'x86' { 'i386' }
    'ARM64' { 'arm64' }
    default { 
        Write-Warning "Unknown architecture: $architecture. Defaulting to x86_64"
        'x86_64' 
    }
}

Write-Host "Detected architecture: $architecture -> $arch" -ForegroundColor Green

# Download URL construction
$baseUrl = "https://github.com/fwdcloudsec/granted/releases/download"
$fileName = "granted_${version}_windows_${arch}.zip"
$url = "$baseUrl/v$version/$fileName"

Write-Host "Download URL: $url" -ForegroundColor Cyan

# Package parameters for Install-ChocolateyZipPackage
$packageArgs = @{
    packageName   = $packageName
    unzipLocation = $toolsDir
    url           = $url
    checksum      = ''  # Will be updated by automation or manual verification
    checksumType  = 'sha256'
}

# Download and extract
try {
    Install-ChocolateyZipPackage @packageArgs
    
    # Define specific files to install as commands (per PRD requirements)
    $filesToInstall = @{
        "granted.exe"  = "granted";
        "assumego.exe" = "assumego";
        "assume.ps1"   = "assume.ps1";
        "assume.bat"   = "assume.bat";
    }
    
    # Files to explicitly exclude from installation
    $filesToExclude = @("assume")  # assume without extension - avoid conflicts
    
    $anyInstalled = $false
    Write-Host "Installing specific binaries to global PATH..." -ForegroundColor Green

    foreach ($entry in $filesToInstall.GetEnumerator()) {
        $fileName = $entry.Name
        $commandName = $entry.Value

        # Search for the file recursively
        $fileObject = Get-ChildItem -Path $toolsDir -Filter $fileName -Recurse | Select-Object -First 1
        
        if ($fileObject) {
            $fullPath = $fileObject.FullName
            Write-Host "  Installing '$fileName' as global command '$commandName'" -ForegroundColor Cyan
            Write-Host "    Source: $fullPath" -ForegroundColor Gray
            
            # For .exe files, use Install-BinFile to create shims
            if ($fileName.EndsWith('.exe')) {
                Install-BinFile -Name $commandName -Path $fullPath
            }
            # For .bat and .ps1 files, copy directly to chocolatey bin directory for global access
            else {
                $chocoDir = Join-Path $env:ChocolateyInstall "bin"
                $destPath = Join-Path $chocoDir $fileName
                Copy-Item -Path $fullPath -Destination $destPath -Force
                Write-Host "    Copied to: $destPath" -ForegroundColor Gray
            }
            $anyInstalled = $true
        } else {
            Write-Warning "Could not find '$fileName' in the extracted package."
        }
    }
    
    # Verify and warn about excluded files
    foreach ($excludedFile in $filesToExclude) {
        $foundExcluded = Get-ChildItem -Path $toolsDir -Filter $excludedFile -Recurse | Select-Object -First 1
        if ($foundExcluded) {
            Write-Host "  Skipping '$excludedFile' (excluded per PRD to avoid conflicts)" -ForegroundColor Yellow
        }
    }
    
    if ($anyInstalled) {
        Write-Host ""
        Write-Host "Granted CLI and tools have been successfully installed to global PATH!" -ForegroundColor Green
        Write-Host "Available commands globally:" -ForegroundColor Yellow
        Write-Host "  - granted       (main CLI)" -ForegroundColor White
        Write-Host "  - assumego      (backend executable)" -ForegroundColor White  
        Write-Host "  - assume.bat    (CMD/Git Bash wrapper)" -ForegroundColor White
        Write-Host "  - assume.ps1    (PowerShell wrapper)" -ForegroundColor White
        Write-Host ""
        Write-Host "Quick start:" -ForegroundColor Cyan
        Write-Host "  granted --help" -ForegroundColor White
        Write-Host "  granted sso login" -ForegroundColor White
        Write-Host ""
        Write-Host "Note: assume.ps1 requires ExecutionPolicy RemoteSigned or Bypass" -ForegroundColor Yellow
        Write-Host "Documentation: https://docs.commonfate.io/granted/" -ForegroundColor Cyan
    } else {
        throw "Could not find any of the required executables in the package."
    }
} catch {
    Write-Error "Failed to install Granted CLI: $($_.Exception.Message)"
    throw
} 
tools\chocolateyUninstall.ps1
$ErrorActionPreference = 'Stop'

$packageName = 'granted'

try {
    Write-Host "Uninstalling Granted CLI and tools..." -ForegroundColor Yellow
    
    # Remove shims for .exe files (these were installed with Install-BinFile)
    $shimNames = @('granted', 'assumego')
    
    foreach ($shimName in $shimNames) {
        try {
            Uninstall-BinFile -Name $shimName
            Write-Host "  Removed shim: $shimName" -ForegroundColor Green
        } catch {
            Write-Warning "  Could not remove shim '$shimName': $($_.Exception.Message)"
        }
    }
    
    # Remove .bat and .ps1 files that were copied directly to chocolatey bin directory
    $directFiles = @('assume.bat', 'assume.ps1')
    $chocoDir = Join-Path $env:ChocolateyInstall "bin"
    
    foreach ($fileName in $directFiles) {
        $filePath = Join-Path $chocoDir $fileName
        if (Test-Path $filePath) {
            try {
                Remove-Item -Path $filePath -Force
                Write-Host "  Removed file: $fileName" -ForegroundColor Green
            } catch {
                Write-Warning "  Could not remove file '$fileName': $($_.Exception.Message)"
            }
        } else {
            Write-Host "  File not found (already removed): $fileName" -ForegroundColor Gray
        }
    }
    
    Write-Host ""
    Write-Host "Granted CLI and tools have been successfully uninstalled." -ForegroundColor Green
    Write-Host "Removed commands: granted, assumego, assume.bat, assume.ps1" -ForegroundColor Yellow
} catch {
    Write-Warning "Error during uninstallation: $($_.Exception.Message)"
} 

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Granted CLI 0.38.0 20 Thursday, June 12, 2025
Waiting for Maintainer
gravatar

This package has no dependencies.

Discussion for the Granted CLI Package

Ground Rules:

  • This discussion is only about Granted CLI and the Granted CLI package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Granted CLI, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus