To handle the compatibility issues and ensure smooth functionality for both get_available_permission_set_licenses and assign_permission_set_licenses, you can make the following adjustments:
Revert get_available_permission_set_licenses to Return PermissionSetLicenseKey:
This will maintain backward compatibility.
Update assign_permission_set_licenses to Accept Both DeveloperName and PermissionSetLicenseKey:
Modify the function to handle input as either DeveloperName or PermissionSetLicenseKey, ensuring it can correctly interpret and process both formats. This adjustment will resolve issues with names like alpha.beta where the DeveloperName is alpha_beta. Accepts api_name as alpha_beta or alpha.beta and assigns them correctly
To handle the compatibility issues and ensure smooth functionality for both
get_available_permission_set_licenses
andassign_permission_set_licenses
, you can make the following adjustments:Revert
get_available_permission_set_licenses
to ReturnPermissionSetLicenseKey
:Update
assign_permission_set_licenses
to Accept BothDeveloperName
andPermissionSetLicenseKey
:DeveloperName
orPermissionSetLicenseKey
, ensuring it can correctly interpret and process both formats. This adjustment will resolve issues with names likealpha.beta
where theDeveloperName
isalpha_beta
. Accepts api_name asalpha_beta
oralpha.beta
and assigns them correctly